score:0

you can add isoweekday: true into time config

https://www.chartjs.org/docs/latest/axes/cartesian/time.html

score:1

you should modify axis settings to set max and min value (start-end date range probably). an example (nb! use your own required formats):

time: {
  unit: 'month',
  displayformats: {
     month: 'mm'
  },
  max: moment(data.end_date).format('mm'),
  min: monent(data.start_date).format('mm')
}

score:3

i realize i'm super late on this, but maybe you should try setting the distribution option to series. see the documentation here:

scale distribution

the distribution property controls the data distribution along the scale:

'linear': data are spread according to their time (distances can vary)
'series': data are spread at the same distance from each other

this should fix that weird formatting that you have where the spacing is all mucked up.


Related Query

More Query from same tag