How to change jquery easyPiechart percentage

Recently my guy implemented html piechartusing jquerythe plugin name in the easyPieChartsame way as the following.

enter image description here

html code:

<span class="chart pull-right" data-percent="45" id="_percentUpdate">
    <div class="flip-container">
      <div class="flipper" onclick="this.classList.toggle('flipped')" id="conserHoursFlip">
       <div class="front percent"></div>
       <div class="back percent"></div>
      </div>
    </div>                                              
<span>

I want to dynamically change a value percentusing JavaScript or backbone.js, but I cannot fix it.

can someone help me.

Thanks.

+4
source share
1 answer

If you want to dynamically change the percentage using Javascript, use this:

$('.chart').data('easyPieChart').update(40);
+4
source

Source: https://habr.com/ru/post/1526619/


All Articles