Chartjs-How to plot two different timeseries datasets with ChartJS?

0👍

You could add objects as data in a dataset (https://www.chartjs.org/docs/latest/general/data-structures.html#object), and remove the labels option:

const cfg = {
  type: 'line',
  data: {
    datasets: [{
      data: [{x: epoch, y: 20}, {x: epoch, y: 10}]
    }]
  }
}

Leave a comment