Chartjs-I want to see all the labels on the X-axis of my graph in Chart.js, but only a few of the labels are coming.

1👍

Yes, there is a way. You need to set autoSkip property to false for x-axis ticks, to show all the labels.

options: {
   scales: {
      xAxes: [{
         ticks: {
            autoSkip: false
         }
      }]
   },
   ...
}

Leave a comment