Open zshall opened 3 years ago
There used to be issues with the refreshes (As this was originally made when it was chartjs 1.x) but I don't honestly know the best way to do it now as I have just left this repo as is, feel free to upload a PR if you find the solution.
Steps to Reproduce
should-update="true
chartData.datasets[0].data
)Expected Results
The chart will update in the way that it does in ChartJS demos, smoothly updating just what has changed:![Smooth updates](https://user-images.githubusercontent.com/175742/109997879-aa7f8580-7cde-11eb-8c47-0be4e36b7c40.gif)
Actual Results
The chart completely redraws, starting with the rotation of the wedges of the pie chart:![Redrawn completely](https://user-images.githubusercontent.com/175742/109998577-5d4fe380-7cdf-11eb-935c-a69e1b748691.gif)
You can reproduce this bug yourself on the example site
This may be a side effect of how the chart options are passed into ChartJS.