[Chartjs]-Chart.js Stacked Group Bar model after updating version Chart.js 2.9.4 -> Chart.js 3.5.0

1👍

OK so the problem is you are setting both your axes to stacked:true which will force ChartsJS to "add" the values together. to get them to "overlap" you need to set Y Axes to stacked:false like this..

CartesianLinearAxes xAxes = new CartesianLinearAxes();
xAxes.setStacked(true);
cScales.addXAxesData(xAxes);

CartesianLinearAxes yAxes = new CartesianLinearAxes();
yAxes.setStacked(false);
cScales.addYAxesData(yAxes);

Leave a comment