I\'m using Chartjs to display a Line Chart and this works fine:
// get line chart canvas
var targetCanvas = document.getElementById(\'chartCanvas\').getConte
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
My specific code (obviously there's a million ways to do this):
var resetCanvas = function(){
$('#results-graph').remove(); // this is my