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 the same problem here... I tried to use destroy() and clear() method, but without success.
I resolved it the next way:
HTML:
Javascript:
var pieChartContent = document.getElementById('pieChartContent');
pieChartContent.innerHTML = ' ';
$('#pieChartContent').append('
It works perfect to me... I hope that It helps.