Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stringForValue value argument #1478

Closed
seyfeddin opened this issue Sep 19, 2016 · 1 comment
Closed

stringForValue value argument #1478

seyfeddin opened this issue Sep 19, 2016 · 1 comment

Comments

@seyfeddin
Copy link

seyfeddin commented Sep 19, 2016

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

@danielgindi
Copy link
Collaborator

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 :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants