[Chartjs]-How to add a ChartPoint to a DataSet in Chart.js with TypeScript?

2👍

You need cast (typescript does not know if it’s number or ChartPoint):

(ds.data as ChartPoint[]).push(p);

Leave a comment