Feature Request: Destroy method
KrishnaPG opened this issue · comments
Gopalakrishna Palem commented
Need method(s) to cleanup the chart and restore the HTML elements back to their original (clean) state.
evolross commented
A work-around destroy looks like this:
// Remove the pie charts canvases
$('.pie-chart canvas').remove();
// Remove the pie chart data contexts, in case you want to rebuild them
$('.pie-chart').removeData('easyPieChart');
Martin Jost commented
@evolross very helpful, thank you!