0👍
I solved it with adding this:
ExpensesChart.data = null
ExpensesChart.options = null
ExpensesChart.update()
before the main code
- Chartjs-Setting exact value in X and Y Axes in chart.js
- Chartjs-Is there a way to display labels on pie chart sections using nchart?
Source:stackexchange.com