1👍
When creating the chart, you could define min
and max
options for yAxes.ticks
. This may be hard-coded value or you may derive them from the chart data.
yAxes: [{
ticks: {
max: 350,
min: 0
}
}]
- [Chartjs]-Ng2-charts: How to set Title of chart dynamically in typescript
- [Chartjs]-How to offset axes in a scatter plot?
Source:stackexchange.com