Spaces:
Running
Running
Upload pie.html
Browse files
pie.html
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<html>
|
| 2 |
+
<head>
|
| 3 |
+
<meta charset="utf-8"><link rel="icon" href="https://powerquery.anvil.app/_/theme/M.ico">
|
| 4 |
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
| 5 |
+
<style>
|
| 6 |
+
</style>
|
| 7 |
+
<script src="https://powerquery.anvil.app/_/theme/highcharts.js"></script>
|
| 8 |
+
<script src="https://cdn.highcharts.com.cn/highcharts/modules/exporting.js"></script>
|
| 9 |
+
<script src="https://cdn.highcharts.com.cn/highcharts/modules/drilldown.js"></script>
|
| 10 |
+
<script src="https://powerquery.anvil.app/_/theme/highcharts-zh_CN.js"></script>
|
| 11 |
+
<script src="https://cdn.highcharts.com.cn/highcharts/themes/grid-light.js"></script>
|
| 12 |
+
</head>
|
| 13 |
+
<body>
|
| 14 |
+
<div id="music">
|
| 15 |
+
<audio controls="controls" autoplay="autoplay" loop=-1>
|
| 16 |
+
<source src="https://powerquery.anvil.app/_/theme/tougong.mp3" type="audio/mpeg" />
|
| 17 |
+
</audio>
|
| 18 |
+
</div>
|
| 19 |
+
<div id="container" style="min-width: 310px; height: 400px; margin: 0 auto"></div>
|
| 20 |
+
<script>
|
| 21 |
+
Highcharts.chart('container', {
|
| 22 |
+
chart: {type: 'pie'},
|
| 23 |
+
title: {text: '2013年11月产值贡献份额'},
|
| 24 |
+
subtitle: {text: '单击每个区域查看具体信息,数据来源: chuiniubi.com.'},
|
| 25 |
+
plotOptions: {series: {dataLabels: {enabled: true,format: '{point.name}: {point.y:.1f}%'}}},
|
| 26 |
+
tooltip: {
|
| 27 |
+
headerFormat: '<span style="font-size:11px">{series.name}</span><br>',
|
| 28 |
+
pointFormat: '<span style="color:{point.color}">{point.name}</span>: <b>{point.y:.2f}%</b> of total<br/>'
|
| 29 |
+
},
|
| 30 |
+
series: [{name: '大中华区',colorByPoint: true,data: [
|
| 31 |
+
{name: '西安',y: 56.33,drilldown: '西安'},
|
| 32 |
+
{name: '北京',y: 24.03,drilldown: '北京'},
|
| 33 |
+
{name: '长沙',y: 10.38,drilldown: '长沙'},
|
| 34 |
+
{name: '成都',y: 4.77,drilldown: '成都'},
|
| 35 |
+
{name: '佛山',y: 0.91,drilldown: '佛山'}
|
| 36 |
+
]}],
|
| 37 |
+
drilldown: {series: [
|
| 38 |
+
{name: '西安',id: '西安',data: [['v11.0',24.13],['v8.0',17.2],['v9.0',8.11],[ 'v10.0',5.33],['v6.0',1.06],['v7.0',0.5]]},
|
| 39 |
+
{name: '北京',id: '北京',data: [[ 'v40.0',5],['v41.0',4.32],['v42.0',3.68],['v39.0',2.96]]},
|
| 40 |
+
{name: '长沙',id: '长沙',data: [['v35',2.76],['v36',2.32],['v37',2.31],['v34',1.27]]},
|
| 41 |
+
{name: '成都',id: '成都',data: [['v8.0',2.56],['v7.1',0.77],['v5.1',0.42]]},
|
| 42 |
+
{name: '佛山',id: '佛山',data: [['v12.x',0.34],['v28',0.24],['v27',0.17],['v29',0.16]]}
|
| 43 |
+
]}
|
| 44 |
+
});
|
| 45 |
+
</script>
|
| 46 |
+
</body>
|
| 47 |
+
</html>
|