[Chartjs]-Implementing Data Decimation in vue chartjs

1👍

No parsing means that you need to provide the data like the internal format so no labels array and objects in your data array like so:

{
  datasets: [{
    label: "Brent Oil Price",
    fill: false,
    borderWidth: 2,
    borderColor: "rgb(75, 192, 192)",
    tension: 0.5,
    pointRadius: 0,
    parsing: false
    data: [{
        x: '1987-05-20',
        y: 5
      },
      {
        x: '1987-05-21',
        y: 6
      }
    ]
  }]
}

The internal data format can be found in the docs here

Leave a comment