Chartjs-How to align multiple Charts with Chart.js

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;
  }
}

Demo @ JSFiddle

enter image description here

Leave a comment