[Chartjs]-Using Chart.js – The X axis labels are not all showing

8πŸ‘

βœ…

I’ve tested your code in a fiddle with Chart.js 2.0 for both bar/line and it looks fine. Chart takes in x-axis labels with:

labels: ["Time Management", "Career Coach", "Stress & Wellbeing", "Note Taking", "Exam Prep", "Presentations"]

The reason you can’t see all your x-axis labels is that the width’s are too thin. You can fix this by either expanding your width, or rotating your labels to be vertical instead.

Leave a comment