I\'m using Chartjs to display a Line Chart and this works fine:
// get line chart canvas var targetCanvas = document.getElementById(\'chartCanvas\').getConte
I couldn't get .destroy() to work either so this is what I'm doing. The chart_parent div is where I want the canvas to show up. I need the canvas to resize each time, so this answer is an extension of the above one.
HTML:
JQuery:
$('#chart').remove(); // this is my element $('#chart_parent').append('Total');