0👍
you can use c3.js for the problem Visit : https://c3js.org/samples/chart_bar_stacked.html
- Chartjs-Boxplot chartjs make min and max dynamic by leaving some space on both side
- Chartjs-Chart.js minimal width of Chart with scrollable overflow
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
- Chartjs-Is there a way to change the date format in php?
- Chartjs-How to set specific height for chartJs background color in terms of yAxis value
Source:stackexchange.com