[Chartjs]-Chart.js xAxes Date Labels are altered based on screen width

4👍

You need to set the hour property of displayFormats to dd as well, like so :

...
time: {
   displayFormats: {
      'day': 'dd',
      'hour': 'dd' //<-- set this
   },
   tooltipFormat: 'll'
},
...

Leave a comment