2👍
✅
Based on the question, I created a fiddle. I am removing the chart using the below line.
animation: {
duration: 0,
onComplete: function(animation){
document.querySelector('#myChart').remove();
document.querySelector('#myImage').setAttribute('src', this.toBase64Image());
}
}
JSFiddle: here
Source:stackexchange.com