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

YAxis show the value .0 or .00 #3400

Closed
lee727n opened this issue Apr 16, 2018 · 1 comment
Closed

YAxis show the value .0 or .00 #3400

lee727n opened this issue Apr 16, 2018 · 1 comment

Comments

@lee727n
Copy link

lee727n commented Apr 16, 2018

the same code implement four charts view.but three view is correct , the four view is display .0 sometimes display .00 , i expect the value is 0 . how to fix it ,i use this code:
[Twovalues addObject:[[ChartDataEntry alloc] initWithX:valx.doubleValue y:valy.doubleValue icon: [UIImage imageNamed:@"icon"]]];
snip20180416_1
snip20180416_2
please reference the picture ,the four view implement with the same code ;
notice , about Formatter ,i already use it in xaxis;
chartview.xAxis.valueFormatter = [[DateValueFormatter alloc]initWithArr:xValue];

@liuxuan30
Copy link
Member

ask on stack overflow.

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