How to plot data from right to left in MPAndroidChart?

I recently updated the MPAndroidChart library from 1.7.4 to 2.0.9, and I forgot what I did to set up a line chart to display data from right to left. Somebody knows? I am wondering if there is a way to trigger this.

+3


source to share


1 answer


There is no method. But it can still be done because it only depends on how you add the data.

Add the values ​​with higher x indices first.



Let's say you have a chart with x-axis labels from January to December with an x-axis range from 0 to 11 (12 values).

Now add December to index 11 and so on.

+3


source







All Articles