Chartjs-Label on the x-axis does not show completely in Chart.js

0👍

This is because by default the time scale auto generates ticks, if you dont want to include the labels from your data you need to set ticks.source to data:

options: {
  scales: {
    x: {
      type: 'time',
      ticks: {
        source: 'data'
      }
    }
  }
}

Leave a comment