I\'m using Chartjs to display a Line Chart and this works fine:
// get line chart canvas
var targetCanvas = document.getElementById(\'chartCanvas\').getConte
When you create one new chart.js canvas, this generate one new iframe hidden, you need delete the canvas and the olds iframes.
$('#canvasChart').remove();
$('iframe.chartjs-hidden-iframe').remove();
$('#graph-container').append('
reference: https://github.com/zebus3d/javascript/blob/master/chartJS_filtering_with_checkboxs.html