score:1

Accepted answer

Your code meets the requirements for Chart.js 2.x but since you're using Chart.js 3.5.1, scales needs to be changed as follows.

scales: {
  y: {
    min: 0,
    max: 100,
    ticks: {
      stepSize: 20
    }
  }
},

Related Query

More Query from same tag