I've seen other javascript charting libraries that supported grouped barcharts, of the sort in the image below. I've not seen this as an explicit option in chart.js's online editor.
Is it possible to do grouped bar charts of this sort in chart.js? Is it easy? Is there a template for it in their online editor?
Best Answer
Yes, you can provide multiple data sets using the
datasets
property, which is an array of containing groupings of values. Each data set contains a series of values indata
that correspond to thelabels
.See two slightly different examples below depending on your version of Chart.js.
Chart.js v1.x
See this JSFiddle.
Chart.js v2.x
See this JSFiddle.