1๐
I was able to get a suitable result using a callback like this:
xAxes: [{
ticks: {
min: 0,
callback: function (value, index, values) {
return value + 2017;
}
},
...
]
0๐
I found that suggestedMin works well:
options: {
scales: {
xAxes: [{
display: true,
ticks: {
suggestedMin: 2017
}
}]
}
}
- [Chartjs]-Chart.js bumpy line
- [Chartjs]-Why Chart.js's tooltip appears in wrong position when mouse hover?
Source:stackexchange.com