5π
It looks like you want to show months instead of days for the axis labels. You can achieve this by changing the unit
property:
options: {
scales: {
xAxes: [{
type: 'time',
time: {
unit: 'month'
}
}]
}
}
- [Chartjs]-Mixed chart scatter plot with chart.js
- [Chartjs]-Chart.js β Increase spacing between legend and chart
Source:stackexchange.com