Chartjs-Angular-Charts bar chart does not update when I change the data, series, labels

0👍

wrap drilldown with $timeout to trigger digest cycle:

function changeToDrilldown(setIndex){
    if ($scope.charts.temp===null){     
     $timeout(function () {
         $scope.charts.temp = $scope.charts.primary;
         $scope.charts.primary = $scope.charts.drilldown[setIndex];
     }, 0);
  }
}

Demo in Plunkr

Leave a comment