Closed mattys31 closed 6 years ago
I'm really sorry for my late response.
Probably your callback code is not part of AngularJS environment so although you update the value of $scope.data you will need to call a $scope.$apply() for it to work as expected.
More info here http://jimhoskins.com/2012/12/17/angularjs-and-apply.html
Hi,
Firstly, this is great.
Secondly, I'm not exactly a master at this stuff so there's plenty of potential for this being a simple error on my side....
But..
when I extract data using a callback I can't get data into the pivot table.
I created a simple table with ng-repeat to render the rows so I can verify that my $scope.data array has data in it, but it seems the pivot chart doesn't get notified of the changes to the array.
So the controller contains
$scope.data = []; $scope.options = { rows: [], cols: [] };
As I say, a simple HTML table renders the rows of $scope.data but the pivot chart doesn't.
Many thanks
Matt