4👍
What I did was when generating the array for the labels, check if i % 10 === 0
where i
is the index of the label, if true, add the label to the array, if false, add empty string to the array.
Maybe not the cleanest way, but it works.
- [Chartjs]-How to align Chart JS "legend" on right-center
- [Chartjs]-Ng2-charts: How to set fixed range for y axis
Source:stackexchange.com