1👍
Try to set the offset
to false in the options
:
const options = {
scales: {
x: {
offset: false,
},
},
};
when offset
is equal to true, there will be some space around the chart. If it is false, the space will be removed.
- Chartjs-Chart.js wide bar with time scale
- Chartjs-HTML minification via Gulp.js is breaking my Chart.js chart in my Angular app
Source:stackexchange.com