[Chartjs]-Chart.js does not scale with two yAxis

1👍

This is because you are using V2 of chart.js in which the scales need to be configured as arrays like so:

new Chart(ctx, {
  type: 'line',
  data: {},
  options: {
    scales: {
      yAxes: [{
        id: 'A'
      }, {
        id: 'B'
      }]
    }
  }
})

Leave a comment