1👍
You’re x
and y
axis configurations are wrong, they should be objects instead of arrays.
If you do it like this it should work:
options: {
scales: {
x: {
ticks: {
beginAtZero: true
}
},
y: {
ticks: {
autoSkip: false,
beginAtZero: true,
stepSize: 1
}
}
}
}
Source:stackexchange.com