Mpandroidchart: Support set step value for Horizontal and Vertical Axis (x/y axis)

Created on 17 Dec 2014  路  3Comments  路  Source: PhilJay/MPAndroidChart

Hi, after deeply searching in this lib, I see you do not support for setting these values yet.

For example, I have a bunch of data of temperature of few months, and I want to draw a chart with step in Y axis is 5 degree, and step in X axis is each 7 days, what I want is the gridline always point to that step value.

I see some others chart lib have this feature, but I love this library (the style, animation, setup). Could you please add this in next release ?

Thanks.

enhancement

Most helpful comment

thanks Phil, but how about the YAxis ?

All 3 comments

Also have the same problem. The YAxis calculates itself automaticly.

As @PhilJay mentioned on StackOverflow(http://stackoverflow.com/questions/28753540/force-barchart-y-axis-labels-to-be-integers), "The mEntries array that holds all the axis labels is public." But when I tried to modify mEntries, it doesn't work, because the chart will re-calculate the y axis values in onDraw() (YAxisRenderer.computeAxisValues()).

Need help. I need suggestions about how to do this(choose which values to be drawn on YAxis).

On the x-axis, you can now set that via calling:

setLabelsToSkip(int count)

https://github.com/PhilJay/MPAndroidChart/wiki/XAxis-(XLabels)

thanks Phil, but how about the YAxis ?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thanhcly920 picture thanhcly920  路  3Comments

AndroidJiang picture AndroidJiang  路  3Comments

botondbutuza picture botondbutuza  路  3Comments

rohitkumarbhagat picture rohitkumarbhagat  路  3Comments

ChenZeFengHi picture ChenZeFengHi  路  3Comments