【www.bbyears.com--jquery】
1、实例代码:
"UTF-8"
>
HighCharts 2D对数轴饼图
<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"
>
$(
word">function
(){
$(
'#logarithmicPieChart'
).highcharts({
chart: {
},
title: {
text:
'(jb51.net)对数轴饼图'
},
xAxis: {
tickInterval: 2
},
yAxis: {
type:
'logarithmic'
,
minorTickInterval: 0.5
},
tooltip: {
headerFormat:
'{series.name}
'
,
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>
"logarithmicPieChart"
style=
"width: 1200px; height: 500px; margin: 0 auto"
>
2、运行效果图:
附:完整实例代码点击此处本站下载。