-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
How do I set the value of the x-axis after update ? #1496
Comments
xcode 8 Chart2.2.5-Swift3.0 |
well you should use Chart 3.0. Chart 2.2.5 will EOL soon. Also, just refresh your chart data x values. The code seems fine. Just don't forget to check your entries |
@liuxuan30 ok ,thx . Charts 3.0 release yet? |
no it's in master |
ok . thx |
i still can't found this after i changed master |
Chart 3.0 has changed a lot. Use latest API |
ok :) 👍 @liuxuan30 |
Hello @monkeyRing , Are you set xValue in any graph.? |
Not yet , I just want to set the x-axis of a chart of the X-coordinate data. |
@monkeyRing So can you please explain me i have create 1 array for store all xvalue and then after fetching using for loop but in bar chart and line chart pass double value so i can't converted in to string. like,
and i want to display string value in x like 26-09,25-09 |
you should set xvals like this
Formatter Xvals Implementation && IAxisValueFormatter Methodstep5
After taking time to string array to achieve x-axis formatting method and return@rs10693 |
can you describe in objective-c. @monkeyRing bcoz i found IAxisValueFormatter this class in swift. so how to use in obj-c i don't knw. |
@rs10693 see the ChartsDemo . the ChartsDemo is described in objective-c |
Hello @monkeyRing Thanks for help but now 1 problem m facing so please help me. i given a Screen shot and see, in that all barchart are combine. i am using bar and line chart both are display same. |
@rs10693 Please refer to ChartsDemo first. Seems you don't setup chart data properly. |
Hello @liuxuan30 @monkeyRing Thank you very much to both of you. now it's perfect. |
perfect solution! |
the screenshot
The text was updated successfully, but these errors were encountered: