I need help refreshing the pie chart div when I click on the image using AngularJS
div
with the image:
<div class="col-md-3 col-sm-12 col-xs-12">
<div class="panel panel-primary text-center no-boder blue">
<div class="panel-left pull-left blue">
<i class="fa fa-comments fa-5x"></i>
</div>
<div class="panel-right">
<h3>Assessment</h3>
</div>
<img src="assets/images/refresh.png" ng-click="refreshChart()"/>
</div>
</div>
Div that needs to be refreshed:
<div class="col-xs-6 col-md-3">
<div class="panel panel-default">
<div class="panel-body easypiechart-panel">
**<div class="easypiechart" id="easypiechart-blue" data-percent="82"><span class="percent">82%</span>**
</div>
</div>
</div>
</div>
app.js code
var sampleApp1 = angular.module('sampleApp1', []);
sampleApp1.controller('dashctrl', function($scope) {
$scope.refreshChart = function (){
$('.chart').data('#easypiechart-blue').update(40);
};
});