2👍
Try this:
$scope.options = {
scales: {
yAxes: [{
ticks: {
beginAtZero: true
}
}]
}
};
- [Chartjs]-Chart.js 2.0 current mouse coordinates tooltip
- [Chartjs]-How to offset axes in a scatter plot?
2👍
If you aren’t using a horizontal Bar, the answer of Hongliang should work.
Otherwise just change “yAxes” to “xAxes”, like this:
$scope.options = {
scales: {
xAxes: [{
ticks: {
beginAtZero: true
}
}]
}
}
- [Chartjs]-Ionic + Angular Charts: Uncaught Error: Chart.js library needs to included
- [Chartjs]-How to append more data in tooltip of graph in chart.js
Source:stackexchange.com