|
<div id="container" ej-chart>
<e-series>
<e-series e-points="Data">
</e-series>
</e-series>
</div>
angular.module('ChartApp', ['ejangular'])
.controller('ChartCtrl', function ($scope) {
$scope.Data = [obj[0]];
$scope.changeData = function() {
if ($scope.Data.length !== obj.length)
$scope.Data.push(obj[$scope.Data.length])
}
}); |