The API for chart.js allows one to edit points of the datasets loaded into it, for example:
.update( )
Calling update() on
I had huge problems with this
First I tried .clear()
then I tried .destroy()
and I tried setting my chart reference to null
What finally fixed the issue for me: deleting the element and then reappending a new
to the parent container
There's a million ways to do this:
var resetCanvas = function () {
$('#results-graph').remove(); // this is my