Chartjs-Subset stacked bars chart

0👍

you can use c3.js for the problem Visit : https://c3js.org/samples/chart_bar_stacked.html

0👍

Maybe this is what you need. Simply set stacked to true in both axes:

options: {
  scales: {
    xAxes: [{ stacked: true }],
    yAxes: [{ stacked: true }]
  }
}

If you don’t receive your data from the back end in this structure you will need to do some changes before adding it to the chart.

.:EDIT:.
Updated fiddle

Leave a comment