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

If the all value is 1 or 0, the ChartYAxis is error #1321

Closed
roselind opened this issue Aug 16, 2016 · 2 comments
Closed

If the all value is 1 or 0, the ChartYAxis is error #1321

roselind opened this issue Aug 16, 2016 · 2 comments

Comments

@roselind
Copy link

version:2.2.5
df977d8e-6abe-4280-8881-2cbdb026ebb5

@danielgindi
Copy link
Collaborator

ChartYAxis is not "error". These are the values it can render, between 0 and 1.
You can control that with granularity. You could have found issues here that talk about it...

@roselind
Copy link
Author

roselind commented Aug 16, 2016

If I set the following properties:
leftAxis.granularity = 0.01;
leftAxis.granularityEnabled = YES;
leftAxis.startAtZeroEnabled = YES;
leftAxis.drawTopYLabelEntryEnabled =YES;
leftAxis.axisMinValue = 0.01;
the all data is 1 , ChartYAxis value is 0,0,0,1,1,1

If I set the following properties:
leftAxis.granularity = 1;
leftAxis.granularityEnabled = YES;
leftAxis.startAtZeroEnabled = YES;
leftAxis.drawTopYLabelEntryEnabled =YES;
leftAxis.axisMinValue =0.01;
the all data Less than 1 , ChartYAxis value is null

1

if the all data is 0 , No line drawing
d3b67d8a-3d4f-4122-b3ce-93424e2a44b6

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