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