Charts: stringForValue value argument

Created on 19 Sep 2016  路  1Comment  路  Source: danielgindi/Charts

I wrote my own formatter and mapped every value with a month string. But every time my overridden stringForValue:axis: method is called, value of value argument is incremented by 0.7, not 1.0.

Am I doing something wrong?

0.000000
0.700000
1.400000
2.100000
2.800000
3.500000
-0.700000
0.000000
0.700000
1.400000
2.100000
2.800000
3.500000
4.200000
0.000000
0.700000
1.400000
2.100000
2.800000

Most helpful comment

Steps on the axis to render are not limited to just 1.0. The user can zoom in or out, and can show different granularity of the grid.
You can limit that by adjusting the granularity property. Look at the demos :-)

>All comments

Steps on the axis to render are not limited to just 1.0. The user can zoom in or out, and can show different granularity of the grid.
You can limit that by adjusting the granularity property. Look at the demos :-)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

danielgindi picture danielgindi  路  61Comments

ghost picture ghost  路  59Comments

patreu22 picture patreu22  路  22Comments

delebedev picture delebedev  路  36Comments

danishnaeem57 picture danishnaeem57  路  40Comments