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>

  


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM