[Chartjs]-How to grouping Label In Char JS

1👍

Use the time axis:

options: {
  scales: {
    xAxes: [{
      type: "time",
      time: {
        unit: "hour",
        displayFormats: {
          hour: "HH:mm"
        }
      }
    }]
    ...

Be sure to use the ‘bundled build’ of Chart.js, or include moment.js before Chart.js.

Leave a comment