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

two CombinedChartView's in the same screen changes axis format in the first #1222

Closed
orensha opened this issue Jul 4, 2016 · 1 comment
Closed

Comments

@orensha
Copy link

orensha commented Jul 4, 2016

Hi, you told me to use NSNumberFormater but the axis number changes regardles of the number formatter.

so you can see the chart before i'm adding the second graph.
screen shot 2016-07-04 at 7 15 02 pm

and when im adding the second graph the axis are rounded to 1
screen shot 2016-07-04 at 7 15 22 pm

i debugged it and saw that its happening when i initialize the second chart's chartData with a diefferent data. what do you say?

@liuxuan30
Copy link
Member

liuxuan30 commented Jul 5, 2016

"when im adding the second graph the axis are rounded to 1"
if you create a new chart, you have to set up the value formatter again on the new chart
You may want to check your code that if the value formatter changed or not.
As you can see, the value formatter is used to format the numbers, so if it's not changed, the format will keep the same

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