plotters-rs / plotters

A rust drawing library for high quality data plotting for both WASM and native, statically and realtimely 🦀 📈🚀
https://plotters-rs.github.io/home/
MIT License
3.89k stars 281 forks source link

[Feature Request] Option to display segment count/value above or on Histogram bars #507

Open baarkerlounger opened 1 year ago

baarkerlounger commented 1 year ago

What is the feature ?

Optionally enable value labels for Histogram bars that show the count or value of each segment/bin/category.

(Optional) Why this feature is useful and how people would use the feature ?

On some Histograms with large value ranges it can be hard to read the value of individual bars, particularly if they're far from the axis. Labels would help provide clearer information at a glance.

(Optional) Additional Information

e.g. https://i.stack.imgur.com/WGh7j.png