0👍
I suspect that the chart is not destroying when you are simply doing context.clearRect().
If you look here on the Chart.js website it says that you have to do myLineChart.destroy();
in order to destroy a specific instance.
If you don’t want to destroy it, I would assume that you can use myLineChart.stop();
which stops animating the chart and then use context.clearRect().
to clear the chart.
Source:stackexchange.com