-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcqjgb_ave.html
110 lines (110 loc) · 3.77 KB
/
cqjgb_ave.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<!DOCTYPE html>
<html style="height: 100%">
<head>
<meta charset="utf-8">
<title>每百万人重庆鸡公煲</title>
<script src="js/echarts.js"></script>
<script src="js/china.js"></script>
<script src="js/china-contour.js"></script>
<script src="js/vintage.js"></script>
</head>
<body style="height: 100%; margin: 0">
<div id="container" style="height: 100%"></div>
<script type="text/javascript">
var dom = document.getElementById("container");
var myChart = echarts.init(dom);
var app = {};
option = {
title : {
text: '重庆鸡公煲店铺数量/百万人',
subtext: '*数据来自百度地图',
left: 'center',
y:40
},
tooltip : {
trigger: 'item'
},
visualMap: {
min: 0.00,
max: 8.00,
left: 'left',
top: 'bottom',
text:['高','低'], // 文本,默认为数值文本
calculable : true,
color: ['blue','white']
},
toolbox: {
show: true,
orient : 'vertical',
left: 'right',
top: 'center',
feature : {
mark : {show: true},
dataView : {show: true, readOnly: false},
restore : {show: true},
saveAsImage : {show: true}
}
},
series : [
{
name: '重庆鸡公煲',
type: 'map',
mapType: 'china',
roam: false,
label: {
normal: {
show: false
},
emphasis: {
show: true
}
},
data:[
{name: '北京',value: 2.28},
{name: '天津',value: 5.01},
{name: '上海',value: 53.30},
{name: '重庆',value: 0.24},
{name: '河北',value: 3.98},
{name: '河南',value: 2.31},
{name: '云南',value: 0.23},
{name: '辽宁',value: 7.42},
{name: '黑龙江',value: 3.42},
{name: '湖南',value: 1.65},
{name: '安徽',value: 4.73},
{name: '山东',value: 7.49},
{name: '新疆',value: 0.04},
{name: '江苏',value: 2.74},
{name: '浙江',value: 7.12},
{name: '江西',value: 1.56},
{name: '湖北',value: 2.05},
{name: '广西',value: 1.14},
{name: '甘肃',value: 0.77},
{name: '山西',value: 3.66},
{name: '内蒙古',value: 2.12},
{name: '陕西',value: 3.63},
{name: '吉林',value: 2.47},
{name: '福建',value: 7.38},
{name: '贵州',value: 0.54},
{name: '广东',value: 0.45},
{name: '青海',value: 0.69},
{name: '西藏',value: 0.00},
{name: '四川',value: 0.22},
{name: '宁夏',value: 0.91},
{name: '海南',value: 1.00},
{name: '台湾',value: 0},
{name: '香港',value: 0},
{name: '澳门',value: 0}
]
}
]
};
if (option && typeof option === "object") {
var startTime = +new Date();
myChart.setOption(option, true);
var endTime = +new Date();
var updateTime = endTime - startTime;
console.log("Time used:", updateTime);
}
</script>
</body>
</html>