Posted in Javascript onMarch 09, 2017
本文实例讲述了jQuery插件HighCharts实现的2D对数饼图效果。分享给大家供大家参考,具体如下:
1、实例代码:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>HighCharts 2D对数轴饼图</title> <script type="text/javascript" src="js/jquery-1.7.2.min.js"></script> <script type="text/javascript" src="js/highcharts.js"></script> <script type="text/javascript"> $(function(){ $('#logarithmicPieChart').highcharts({ chart: { }, title: { text: '(3water.com)对数轴饼图' }, xAxis: { tickInterval: 2 }, yAxis: { type: 'logarithmic', minorTickInterval: 0.5 }, tooltip: { headerFormat: '<b>{series.name}</b><br />', pointFormat: 'x = {point.x}, y = {point.y}' }, series: [{ data: [1, 3, 9, 27, 81, 243, 729, 2187, 6561, 19683,59049,177147,531441,1594323], pointStart: 1 }] }); }); </script> </head> <body> <div id="logarithmicPieChart" style="width: 1200px; height: 500px; margin: 0 auto"></div> </body> </html>
2、运行效果图:
jQuery插件HighCharts实现的2D对数饼图效果示例【附demo源码下载】
- Author -
翱翔天地声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@