Chartjs-Displaying every nth label on the x-axis

0👍

You could define the maximum number of ticks and gridlines to show on the xAxis using the option ticks.maxTicksLimit.

scales: {
  xAxes: [{
    ticks: {
      maxTicksLimit: 8
    }
  }]

Leave a comment