score:2

update: see this specific line about format in the documentation

the x-axis data points may additionally be specified via the t or x attribute when using the time scale. see more here https://www.chartjs.org/docs/latest/axes/cartesian/time.html

your datafield must be a dictionary/object of x, y values:

data: [{x: "2019-01-03", y: 15}, {x: "2019-01-04", y: 18}, ...]

when creating your chart, set type in options.scales:

...,
options: {
 scales: {
  xaxes: [{
   type: 'time',
  }]
},
...

Related Query

More Query from same tag