You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
2.2 KiB
HTML

2 years ago
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>抽水蓄能电站智能化状态监测系统</title>
<style type="text/css">
</style>
</head>
<body>
<script src="https://img.hcharts.cn/jquery/jquery-1.8.3.min.js"></script>
<script src="/static/cssjs/js/highcharts.js"></script>
<script src="/static/cssjs/js/highcharts-3d.js"></script>
<script src="/static/cssjs/js/exporting.js"></script>
<div id="container" style="height: 400px"></div>
<script type="text/javascript">
$(function () {
$.getJSON('http://www.tp5.com/index/pie1/getjson', function (data) {
// alert(data);
Highcharts.chart('container', {
chart: {
type: 'pie',
options3d: {
enabled: true,
alpha: 45,
beta: 0
}
},
title: {
text: 'Browser market shares at a specific website, 2014'
},
tooltip: {
pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
},
plotOptions: {
pie: {
allowPointSelect: true,
cursor: 'pointer',
depth: 35,
dataLabels: {
enabled: true,
format: '{point.name}'
}
}
},
series: [{
type: 'pie',
name: 'Browser share',
data: data
}]
});
});
});
</script>
</body>
</html>