Chartjs-Is it possible to have tick stepSize for each dataset in Chart.js?

0👍

What I needed to do is giving each dataset an ID yAxisID: 'axis-months', and then in option I needed to define a option specified for each ID:

scales: {
  yAxes: [
    {
      id: 'axis-months',
      ticks: {
        beginAtZero: true,
        stepSize: scaleBar * 0.2,
        max: scaleBar
      }
    },
    {
      id: 'axis-accumulation',
      gridLines: {
        display: false
      },
      ticks: {
        beginAtZero: true
      },
      position: 'right'
    }
  ]
},

Leave a comment