I am using charts in my webapp and for that I am using angular-charts. The html file for charts is
<canvas id="pie" class="chart chart-pie" chart-data="data"
chart-labels="labels">
</canvas>
and the controller file for this is
angular.module('myApp')
.controller('myController', function ($scope) {
$scope.labels = ["Download Sales", "In-Store Sales", "Mail-Order Sales"];
$scope.data = [300, 500, 100];
});
Now I just want to know how to add data dynamically into this pie chart.
Thanks in advance