0👍
First update your myData
variable where newDataset
contains your additional data:
myChart.config.data.datasets.push(newDataset);
Then call update()
method to update your chart:
myChart.update();
- Chartjs-Why is there an error in ChartJs.Blazor (change in ASPNETCORE_ENVIRONMENT)
- Chartjs-How to open a new Tab with javascript and display some chart
Source:stackexchange.com