Chartjs-How to delete a chart (canvas) out of its scope?

2👍

Perhaps make .destroy conditional in your dropdown handler instead. That way it won’t blow up the first time through when there’s no myChart defined:

if($scope.myChart){$scope.myChart.destroy()};

Leave a comment