0👍
You should cast it to the correct type in this case it’s the line dataset:
(cds as ChartDataset<"line">).borderDash = [10, 5];
- Chartjs-Generator-angular-fullstack and angular-chart.js not displaying charts
- Chartjs-Angular chartjs directive
Source:stackexchange.com