0👍
You could define options.scales.xAxis.offset = true
, this adds extra space to both edges and the axis is scaled to fit into the chart area.
options: {
...
scales: {
xAxes: [{
offset: true,
...
}],
}
}
Source:stackexchange.com