title: ChartJS How to set max labels for X axis?
body: <p>I receive data for chart from an array , where I stored dates from 2016 , 1 to 2018 , 12 . In chart it displays all month for 3 years. But I need to display only for 1 year. Any ideas?</p>
  
  <p>Here i'm passing an array and changing unit for month, also displayFormats</p>
  
  <pre><code>chartHour.config.data.datasets[0].data = array
  chartHour.config.options.scales.xAxes[0].time = {
      unit: "month",
      stepSize: 1,
      displayFormats: {
        month: "MMM",
      },
    }
  </code></pre>