0👍
- Open your DevTools and check if there are any errors in your console.
- Do a
console.log(this.tempData)
andconsole.log(this.timeData)
and check if these variables have the same data format as your "static" data that worked.
- Chartjs-ChartJS Graph Label Errors
- Chartjs-Is there a way to align title and legend on the same line?
0👍
Your problem is, that the Chart doesn’t notice that the data in the array has changed. You can reinitialize the data and then the chart gets an auto-refresh.
this.tempData = {...this.tempData}
If you still have the problem it would be nice if you provide the data of the console.log statements.
Source:stackexchange.com