How to plot data from right to left in MPAndroidChart?

依然范特西╮ 提交于 2019-12-05 13:53:10

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

Just add values at higher x-indices first.

Say you got a chart with x-axis labels from January to December with an x-axis range from 0 - 11 (12 values).

Now add the december value at index 11, and so on.

One Zero

If you want to set the first data point other than zero and have the data display in left to right manner use moveViewToX(float xValue).

moveViewToX(float xValue): Moves the left side (edge) of the current viewport to the specified xValue.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!