You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to merge three different bar charts into one #556
Hey thanks for the reply! Unfortunately that isn't what I'm trying to accomplish. I need the datasets for each label to be different and not linked to each other. So for example ill have for the label department ['corporate':10, 'hr':14 ....] and for the label gender ill have ['male':123, 'female':31] and lastly for age it'll be ['20-30':31, '31-44':42]. These three labels have their own data associated with them, I'm just trying to have all three in one bar chart, is that possible?
Activity
jkotova commentedon Sep 24, 2020
Hi, you just need to pass datasets as an array:
Below is the data object for this chart:
DannyThomas2 commentedon Sep 24, 2020
Hey thanks for the reply! Unfortunately that isn't what I'm trying to accomplish. I need the datasets for each label to be different and not linked to each other. So for example ill have for the label department ['corporate':10, 'hr':14 ....] and for the label gender ill have ['male':123, 'female':31] and lastly for age it'll be ['20-30':31, '31-44':42]. These three labels have their own data associated with them, I'm just trying to have all three in one bar chart, is that possible?
dangreen commentedon Nov 30, 2026
Closing: this is a usage question rather than a bug report or a feature request. The docs of the wrapper are at https://react-chartjs-2.js.org and the chart options are described in the Chart.js docs: https://www.chartjs.org/docs/latest/