0👍
use drawTicks in yAxes
options: {
scales: {
yAxes: {
grid: {
drawTicks: false,
},
},
}
}
-4👍
Hard to say without showing your code, but to me it could look like the labels adding padding to the sides.
Have you tried rotating the labels to see if it helps:
options: {
scales: {
xAxes: [{
ticks: {
autoSkip: false,
maxRotation: 90,
minRotation: 90
}
}]
}
}
- [Chartjs]-Select All and Unselect Option for chart.js
- [Chartjs]-Using CSS variables (color) with chart.js – "var(–primaryColor)" not working
Source:stackexchange.com