-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
Line chart dataset order is wrong #2719
Comments
Similar to a bunch of other issues that are open, but I can't find them at the moment. |
If you could just point me to the section where you choose the render order of datasets I could take a look, just don't have time to dig around looking. Also, here is that similar issue: #2219 |
Datasets are drawn here: https://github.com/chartjs/Chart.js/blob/master/src/core/core.controller.js#L354-L358 |
This will be resolved in #4008 which adds the ability to fill to another dataset. This means that the draw order will become irrelevant since the correct solution for the blue dataset will be to fill to the red one instead of all the way down to 0 |
Tied in with my comment on #2219 |
Closing per my comment from march. This can be fixed using the fill to other dataset functionality. See https://jsfiddle.net/gz4ev7jr/ |
Funny how your jsfiddle doesn't work. |
This fiddle shows the problem: https://jsfiddle.net/dmig/97pxd7eL/4/
When I specify datasets, I expect them to be drawn in that order:
Workaround is to reverse their order, but label order in legend/tooltips is also reversed,
The text was updated successfully, but these errors were encountered: