Chartjs-Ticks callback not displaying strings containing decimal

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 is true (default), Chart.js automatically calculates
how many labels can be shown and hides labels accordingly. Labels will
be rotated up to maxRotation before skipping any. Turn autoSkip
off to show all labels no matter what.

Leave a comment