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

deepumukundan picture deepumukundan  Â·  3Comments

guoyutaog picture guoyutaog  Â·  3Comments

sjdevlin picture sjdevlin  Â·  3Comments

JW00332 picture JW00332  Â·  4Comments

cilasgimenez picture cilasgimenez  Â·  4Comments