show number in easy pie chart - Javascript Chart.js

Javascript examples for Chart.js:Pie Chart

Description

show number in easy pie chart

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <meta name="viewport" content="width=device-width, initial-scale=1"> 
      <script type="text/javascript" src="https://code.jquery.com/jquery-1.11.0.js"></script> 
      <script type="text/javascript" src="http://rendro.github.io/easy-pie-chart/javascripts/jquery.easy-pie-chart.js"></script> 
      <link rel="stylesheet" type="text/css" href="http://getbootstrap.com/dist/css/bootstrap.min.css"> 
      <link rel="stylesheet" type="text/css" href="http://rendro.github.io/easy-pie-chart/stylesheets/jquery.easy-pie-chart.css"> 
      <style id="compiled-css" type="text/css">

.easychart {//w  w w  . j a v a  2  s  .  c  om
   position: relative;
   text-align: center;
   margin:10px;
}


      </style> 
      <script type="text/javascript">
    $(window).load(function(){
 $(function () {
     $('.chart').easyPieChart({
         size: 140,
         lineWidth: 5
     });
 });
    });

      </script> 
   </head> 
   <body> 
      <div class="chart easychart" data-percent="73" data-scale-color="#ffb400">
         73%
      </div>  
   </body>
</html>

Related Tutorials