[Chartjs]-How to draw multiple color bar in a bar chart using chart.js

4👍

You can achieved this via stacked option.

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

1👍

Finally I found the answer to my question.
I wanted to have stacked bar chart.

Here is the answer.

Horizontal stacked bar chart with chart.js

PS: I have tested the answer myself and it works perfectly fine.

Leave a comment