我试图显示高图 它显示正确但角度返回errror 错误:$ rootScope:infdig Infinite $ digest循环 这里是控制器:
$scope.graphPriority=[
{value:2},
{value:0},
{value: 1}
];
$scope.process = function(graphPriority) {
return graphPriority.map(function (elem, i) {
return [i, elem.value];
});
};
和html,如果有人关心:
<div class="main-inner-pie">
<highcharts-pie class="hc-pie-1" items="process(graphPriority)"></highcharts-pie>
</div>
我错过了什么?
编辑: 我试过了:
$scope.process = function(graphPriority) {
graphPriority.map(function (elem, i) {
return [i, elem.value];
});
};
它没有返回错误,但没有显示图表