[Chartjs]-How can I set the yAxis scale for the chart?

0👍

You need to set the ticks property of yAxes options. Refer the below code or fiddle -> http://jsfiddle.net/Lzo5g01n/10/

Always make sure you reference the latest version of Chart.js library.

yAxes: [{
        display: true,
        scaleLabel: {
          display: true,
          labelString: 'Рост'
        },
        ticks:{
            min: 0,
          max: 100,
          beginAtZero: true, 
          stepSize: 5
        }
      }]

Leave a comment