chart js set max value for y code example
Example: chart.js y axis maximum value
var options = {
scales: {
yAxes: [{
display: true,
ticks: {
beginAtZero: true, // minimum value will be 0.
// <=> //
min: 0,
max: 10,
stepSize: 1 // 1 - 2 - 3 ...
}
}]
}
};