-
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
Mixed charts issue #5260
Comments
I noticed the same and the problem with setting the initial chart type as BAR is that the points on the Xaxis shift from the grid lines. The x axis points are now in the center between two grid lines. |
Thanks but none of those issues state which additional options are needed if we take out "bar' type. What extra settings are needed and where do they need to be added? It would have been nice to close it with a resolution. Thanks again |
@StarAzure it's these settings https://github.com/chartjs/Chart.js/blob/master/src/controllers/controller.bar.js#L16-L26 The fix is to not require the bar type to be the core type. |
Is there any particular reason why this works:
and this does not?
The point is; if the type of the chart is bar, bar and line datasets work. If type is line, line datasets work but bar don't.
The text was updated successfully, but these errors were encountered: