15👍
✅
This worked perfectly.
xAxes:[{
ticks:{
display: true,
autoSkip: true,
maxTicksLimit: 4
}
}]
0👍
Above Char.js Version 4.21
xAxes was changed to x and array format was changed to object format
Example:
scales: {
x: {
ticks: {
display: true,
autoSkip: true,
maxTicksLimit: 15,
},
},
},
Source:stackexchange.com