javascript - Easy Pie Chart no effects - Stack Overflow

I recently used the plugin easy-pie-chart: rendro.github.ioeasy-pie-chartOn the page, I've inclu

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 badges
Add a ment  | 

1 Answer 1

Reset to default 5

I 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

相关推荐

  • javascript - Easy Pie Chart no effects - Stack Overflow

    I recently used the plugin easy-pie-chart: rendro.github.ioeasy-pie-chartOn the page, I've inclu

    8小时前
    30

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信