Closed donli1210 closed 6 years ago
Please see this fiddle
If I put the following settings in the $scope.chartConfig, it is working
$scope.chartConfig
plotOptions: { series: { compare: 'percent' } }
If I put it to a function and change it dynamically
$scope.changePercentage = function() { $scope.chartConfig.plotOptions.series.compare = 'percent'; $scope.chartConfig = angular.copy($scope.chartConfig); };
It is not working. Any suggestions? Thanks!
There was an error in your jsfiddle- check the console of your jsfiddle for details. See here for an alternative approach.
http://jsfiddle.net/upjb6rLh/
Thanks!
Please see this fiddle
If I put the following settings in the
$scope.chartConfig
, it is workingIf I put it to a function and change it dynamically
It is not working. Any suggestions? Thanks!