Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
164
rated 0 times [  168] [ 4]  / answers: 1 / hits: 5485  / 11 Years ago, wed, february 12, 2014, 12:00:00

Recently my html guy implemented piechart using jquery plug -in name as easyPieChart just like in the following way.



enter



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 change dynamically percent value through JavaScript or backbone.js,but I can't able to fix this.



can anyone help me.



Thanks.


More From » jquery

 Answers
0

If you want to change the percent dynamically with Javascript, use this :



$('.chart').data('easyPieChart').update(40);

[#47793] Wednesday, February 12, 2014, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
jocelynkarsynr

Total Points: 472
Total Questions: 98
Total Answers: 96

Location: Macau
Member since Mon, Nov 16, 2020
4 Years ago
jocelynkarsynr questions
Tue, Feb 8, 22, 00:00, 2 Years ago
Sat, Jul 11, 20, 00:00, 4 Years ago
Sun, May 10, 20, 00:00, 4 Years ago
Sat, Jan 18, 20, 00:00, 4 Years ago
;