[Chartjs]-Line chart with large number of labels on X axis

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.

Leave a comment