0👍
✅
Your code looks fine but you need to define ticks.autoSkip: false
:
ticks: {
...
autoSkip: false,
Please have a look at the amended StackBlitz
If
autoSkip
istrue
(default), Chart.js automatically calculates
how many labels can be shown and hides labels accordingly. Labels will
be rotated up tomaxRotation
before skipping any. TurnautoSkip
off to show all labels no matter what.
Source:stackexchange.com