Axis values decimals

Posted by CarloManiscalco 
Axis values decimals
November 26, 2009 10:28PM
Hi everybody,

i'm trying to show a graph like this:
X: month days (1-30)
Y: custom value (0-3)

With the default settings the X axis would have the grid and values at steps like 1.0 2.9 4.9 6.8 (because there is no space to show every value) and so on... obviously this is not the way it is meant to be.

I tried theese 2 solutions:
1) hide X values and add labels at integer intervals. The problem in this case is that the grid is not aligned anymore.
2) use SetAxisValuesDecimals(0) to force the values to have no decimals. The problem is this case is that the values are rounded so in the X axis i don't get always the same step (2 or 3 days) and the Y axis is also affected so i see repeated values due to the rounding.

How could i solve this little problem?
Sorry, you do not have permission to post/reply in this forum.