0👍
✅
Make sure that you need to apply the afterFit
method to the y2
axes.
y2: {
type: "category",
labels: [],
offset: true,
position: 'left',
stack: 'demo',
stackweight: 1,
grid: {
drawOnAreaChart: false
},
title: {
display: true,
text: "Dataset"
},
afterFit(scale) {
scale.width = 90;
}
}
Source:stackexchange.com