[Chartjs]-Line chart doesn't work with type time chart.js

1👍

You should generate specific dataset like this:

const values = JSON.parse(json).responses[0].rows.map((row, index) => {
  let date = new Date(2020, 4, 20);
  date.setDate(startDate.getDate() + index)
  return {
    y: row.values[0],
    x: date
  };
});

example

Leave a comment