easy-pie-chart
easy-pie-chart copied to clipboard
[AngularJS] Options dynamically
Is it possible to change options dynamically, and chart redraw automatically ? I have tried and with no success.
Something like this:
var app = angular.module('app', ['easypiechart']);
app.controller('chartCtrl', ['$scope', function ($scope,frameworkFactory) {
...
$scope.start = function(){
var data = frameworkFactory.getData();
data.$get().then(function(v){
$scope.percent = data[$scope.data].percent;
$scope.options = data[$scope.data].options;
});
}
$scope.start();
...
We're planning to bring dynamic options into easypiechart. For now you can use dynamic percentage values as you see in this example: http://plnkr.co/edit/HEyMt7AfI05yVxR8K8mu?p=preview
Thanks, i'll wait for that feature.
+1 for this feature
+1
+1
Actually +100
+1
+1
PR's are welcome. :octocat::v:
Setting options dynamically would be great, especially colors
+1
+1
+1
+1
+1