I'm trying to render different charts from an array named $scope.dataset
with ng-repeat but it is not happening.
<div ng-repeat="data in dataset">
<nvd3 options="options" data="data" class="with-3d-shadow with-transitions"></nvd3>
</div>
But I get this in firefox console-
Error: a.map is not a function
So I tried to put the same code in their plunkr - linechart-nvd3, and that did not work either. However the graph renders when I use the whole array i.e. $scope.dataset
rather than using ng-repeat
. Any help would be appreciated. Thank you.