Labels are off-centered with multiple datasets are used #9493
Unanswered
dostarora97
asked this question in
Q&A
Replies: 1 comment
-
You are looking for the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Expected Behavior
Current Behavior
Possible Solution
Steps to Reproduce
Live Example: https://codepen.io/dost25/pen/MWmVJwR
Context
I want to have 3 kinds of bars in my bar-chart, where each kind is colored with a different color and different dataset-label.
Here I've following 3 kinds of Bars:
But when I build my dataset in the given manner the bars are not centered for x-label.
I think this happens because the chart.js library tries to fit bars of Dataset-2 & Dataset-3 among the bars of Datset-1, and so that's why the get shifted.
Ideally if the x-label is different each bar should be placed in their own x-labels, but I think this is not happening.
Environment
Beta Was this translation helpful? Give feedback.
All reactions