-
Notifications
You must be signed in to change notification settings - Fork 23
/
index.html
50 lines (48 loc) · 1.21 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width">
<title></title>
</head>
<body>
<div id="main" style="width: 100%; height: 600px;"></div>
<script type="text/javascript" src="./lib/jquery-3.1.1.min.js"></script>
<script type="text/javascript" src="./lib/echarts.min.js" ></script>
<script type="text/javascript" src="./map/jiangxi.js"></script>
<script type="text/javascript" src="./extendsMap.js"></script>
<script>
var myChart = echarts.extendsMap('main', {
bgColor: '#154e90',
mapName: '江西',
goDown: true,
callback: function(name, option, instance){
// console.log(name, option, instance);
},
data: [{
name: '南昌',
value: 10,
level: 1
}, {
name: '景德镇',
value: 12,
level: 2
}, {
name: '萍乡',
value: 11,
level: 3
}, {
name: '赣州',
value: 16,
level: 2
}, {
name: '吉安',
value: 12,
level: 1
}]
});
// 初始化实例对象后可设置实例对象要显示的地图
// myChart.setMap('景德镇市');
</script>
</body>
</html>