-
Notifications
You must be signed in to change notification settings - Fork 291
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[Feature Request] Bar Graphs #98
Comments
Hi there, thanks for the feature request. If my understanding is correct, the feature is already supported by Plotters. Plotters is actually a drawing library that makes plotting easier, which means it doesn't limits you on predefined plot types. In general, we abstract a series as a iterator of drawable elements. Thus the feature can be supported by passing an iterator of rectangles to I am documenting all those stuff (but very slowly). And this may be more detailed answer to how to draw the chart. https://plotters-rs.github.io/book/basic/basic_data_plotting.html#histogram |
Thanks for your response :-) |
I too would like to draw bar graphs. My X axis is a Category axis with values (in days): <1, 1-3, 3-6, 6-9 days, >9 days I've spent almost a whole day trying to figure out how to do it. I think I want to use a plotters::coord::Category but Histogram's don't support that because it doesn't implement plotters::coord::DiscreteRanged And of course I can't implement it in my own code; I'll try hacking the source.. |
I suppose this is already supported by v0.3 when using slice as coord spec, so closing the issue |
What is the feature ?
Add support for bar graphs which are similar to histograms but slightly different ;-)
Examples for bar graphs:
(image from https://www.mathsisfun.com/data/bar-graphs.html)
or
(Optional) Why this feature is useful and how people would use the feature ?
It's similar to histograms but is more focused on categories/... and doesn't only work for continous data.
The text was updated successfully, but these errors were encountered: