1๐
โ
Youโll have to set the beginAtZero
option:
$chartOptions = [
'scales' => [
'yAxes' => [
[
'ticks' => [
'beginAtZero' => true,
],
],
],
],
];
->options($chartOptions);
0๐
If you want the y-axis to start at zero you can include it in the options
options: {
scales: {
yAxes: [{
ticks: {
beginAtZero: true
}
}]
}
}
Source:stackexchange.com