Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to specify boundaries for BarChart #4764

Open
roym899 opened this issue Jan 9, 2024 · 1 comment
Open

Allow to specify boundaries for BarChart #4764

roym899 opened this issue Jan 9, 2024 · 1 comment
Labels
enhancement New feature or request 📈 plot Plots, charts, graphs, timeseries, … 🍏 primitives Relating to Rerun primitives

Comments

@roym899
Copy link
Collaborator

roym899 commented Jan 9, 2024

BarChart currently only supports discrete equal size bins starting with 0. It would be nice to support arbitrary x boundaries and hence bars of varying width.

@roym899 roym899 added enhancement New feature or request 👀 needs triage This issue needs to be triaged by the Rerun team labels Jan 9, 2024
@Wumpf Wumpf added 🍏 primitives Relating to Rerun primitives and removed 👀 needs triage This issue needs to be triaged by the Rerun team labels Apr 23, 2024
@Wumpf Wumpf added the 📈 plot Plots, charts, graphs, timeseries, … label Jun 5, 2024
@juanma-rm
Copy link

Also interested in that feature (defining the X range to increase flexibility and specifying bar widths). Any progress towards that goal?

I found a (very limited) workaround to map each Y to a specific X value: following the documentation it says "x values will be the indices of the array, and the bar heights will be the provided values"; thus, you can create an empty array with as many positions as needed to encompass maximum positive X (e.g. 100 long array), all elements initialized to zero, and then set those elements (array[50] = 10, array[55] = 20). That way you can map X-Y (only works for positive X and would require very large unused space of memory if X values go too high).

PS: great job with rerun, looks pretty interesting and useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request 📈 plot Plots, charts, graphs, timeseries, … 🍏 primitives Relating to Rerun primitives
Projects
None yet
Development

No branches or pull requests

3 participants