Is it possible to change labels on X axis during zooming in MPAndroidChart ? I want to have years as labels at the beginning, than change into months when zooming, then week (labels will become more accurate when zoom).
This feature just became available, please check out the AxisValueFormatter interface.
It allows to dynamically adjust axis labels before drawing them which means you can write your own logic and decide what get's displayed and what not. Always bear in mind that performance is critical here as methods of this interface are invoked (potentially) thousands of times when drawing the chart. Especially avoid unnecessary memory allocations or expensive loops.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With