0👍
beginAtZero is an attribute of ticks so you need to put it inside ticks, which is part of options:
options:{
scales:{
yAxes:[{
ticks:{
beginAtZero: true
}
}]
}
}
- Chartjs-How to turn off tooltip for primeng pie chart?
- Chartjs-How to fill remaining polar area with color
Source:stackexchange.com