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

Granular X/Y axis steps #34

Closed ernestas-poskus closed 5 years ago

ernestas-poskus commented 5 years ago

Thank you for the crate!

How to configure steps X / Y axis steps to be more granular, e.g.:

stock image

https://github.com/38/plotters/blob/master/examples/stock.rs#L38

First step in X axis: 2019-03-13, last step 2019-04-24, how to force display all 30 dates as steps in this graph?

38 commented 5 years ago

Hi, If my understanding is correct you may want to use this API https://docs.rs/plotters/0.2.6/plotters/chart/struct.MeshStyle.html#method.x_labels which you are changing the maximum number of labels on x aixs.

ernestas-poskus commented 5 years ago

Yes exactly what I need, somehow I have missed these methods :bowing_man: