[Chartjs]-Adding data to line chart using addData() method in Chart.js

2👍

ok, I figured out what was wrong.
I misinterpreted how to use addData().
I thought the array supplied was a single set of x,y coordinates, but it is a set of y coordinates, 1 for each dataset, and the next ‘label’ arguement is the ‘x’ label.
I’m closing this.
Sorry to waste anyones time.

Leave a comment