easyPieChart 使用小记

在使用的时候本来想在获取数据的时候,再放入percent值,但死活不出来进度条条了,只能无奈设置默认100.求教有木正确方式?

$("#demo-pie-1").attr("data-percent",Math.round(signRate));
$('#demo-pie-1').easyPieChart({ barColor :'#68b828', scaleColor: false, trackColor : '#eee', lineCap : 'round',//'butt', lineWidth :8, onStep: function(from, to, percent) { $(this.el).find('.pie-value').text(Math.round(signRate) + '%'); } });

  

 <div id="demo-pie-1" class="pie-title-center mar-rgt" data-percent="100">
     <span class="pie-value text-thin"></span>
 </div>

  

posted @ 2016-05-23 19:14  长风傲天  阅读(4646)  评论(0编辑  收藏  举报
[h1[ [B]天涯雪[/B] [/h1]