11๐
โ
Try Adding min to your options:
var options = {
scales: {
yAxes: [{
ticks: {
beginAtZero: true,
min: 0
}
}]
}
};
Live Copepen: Chart.js Start at zero
3๐
As per chart.js 3.7.1 version
Directly write "beginAtZero" in x or y not in ticks
const options = {
scales: {
x: {
beginAtZero: true,
},
y: {
beginAtZero: true,
}
}
};
2๐
Replaced by:
const options = {
scales: {
y: {
beginAtZero: true
}
}
};
It worked!
Source:stackexchange.com