I recently used the plugin easy-pie-chart: rendro.github.io/easy-pie-chart/
On the page, I've included the js file
<script src="vendor/easy-pie-chart-master/src/easypiechart.js"></script>
I add this code
<div class="chart" data-percent="73" data-scale-color="red">73%</div>
and recalled the plugin
<script type="text/javascript">
$(function() {
$('.chart').easyPieChart({
//your configuration goes here
});
});
</script>
It does not appear, however, no result, belonging to the number written in the normal manner. What is the reason?
The console gives me error like:
Uncaught TypeError: Object [object Object] has no method 'easyPieChart'
Some of you could help me: I thank you all in advance
I recently used the plugin easy-pie-chart: rendro.github.io/easy-pie-chart/
On the page, I've included the js file
<script src="vendor/easy-pie-chart-master/src/easypiechart.js"></script>
I add this code
<div class="chart" data-percent="73" data-scale-color="red">73%</div>
and recalled the plugin
<script type="text/javascript">
$(function() {
$('.chart').easyPieChart({
//your configuration goes here
});
});
</script>
It does not appear, however, no result, belonging to the number written in the normal manner. What is the reason?
The console gives me error like:
Uncaught TypeError: Object [object Object] has no method 'easyPieChart'
Some of you could help me: I thank you all in advance
Share Improve this question asked Jan 9, 2014 at 9:59 user2520113user2520113 551 silver badge5 bronze badges1 Answer
Reset to default 5I think easyPieChart.js
path is not correct ,check the path or give
<script src="http://rendro.github.io/easy-pie-chart/javascripts/jquery.easy-pie-chart.js"></script>
Fiddle
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744777622a4593140.html
评论列表(0条)