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()};
Source:stackexchange.com