-
-
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
Issue with order of x-values and Multi LineChart #2474
Comments
This is the code with the changes I made to fix it commented out
|
2.x is not maintained anymore. so you are on your own and fix any bugs you found. |
@liuxuan30 if you have any pointers on where I should start looking, it would be appriated. thanks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm still using swift 2 so I use Charts 2.3.1
I have to load some measurement data (Waist, Weight, Hip) that the user is adding. Something like this:
To display the data correctly with an ascending date order (x-value) I have to order the xValues and also partially order the yValues as well. If I don't order the yValue as well some data are not shown or the line chart is plotted wrong.
I'm slightly confused on why do I need to to do the second step for each yVals dataset given that I already provide an ordered xVals and the correct index.
Any help would be appreciated, I'm moving torward dynamicaly load different datasets so the code would be much easier to understand if I only have to order the xVals.
The text was updated successfully, but these errors were encountered: