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
| <!DOCTYPE html>
| <html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.w3.org/1999/xhtml">
| <head>
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
| <title></title>
| <meta charset="utf-8" />
| <script th:src="@{${pubzyWebRoot} + 'echarts/echarts.min-3.0.js'}" type="text/javascript"></script>
| </head>
| <body>
| <div id="div_HYJJFZ" style="width:740px; height:420px;"></div> <!--海洋经济发展-->
| </body>
| </html>
| <script type="text/javascript">
| //海洋经济发展
| var divhyjjfz = document.getElementById("div_HYJJFZ");
| var hyjjfz = echarts.init(divhyjjfz);
| var HYJJFZoption = {
| tooltip: {
| trigger: "item",
| formatter: "{a} <br/>{b} : {c}"
| },
| legend: {
| x: 'center',
| data: ['中国海洋经济发展指数','发展水平指数','发展成效指数','发展潜力指数']
| },
| xAxis: [
| {
| type: "category",
| data: [2010,2011,2012,2013,2014,2015,2016,2017,2018],
| boundaryGap: false
| }
| ],
| yAxis: [
| {
| type: "value",
| splitNumber: 10,
| min:100
| }
| ],
| toolbox: {
| orient:'vertical',
| y:'center',
| show: true,
| feature: {
| mark: {
| show: true
| },
| dataView: {
| show: true,
| readOnly: true
| },
| restore: {
| show: true
| },
| saveAsImage: {
| show: true
| }
| }
| },
| calculable: true,
| series: [
| {
| name: "中国海洋经济发展指数",
| type: "line",
| data: [100,105.5,109.3,113.6,116.8,122.3,124.5]
| },
| {
| name: "发展水平指数",
| type: "line",
| data: [100,106.3,109.5,114.3,117.3,118.7,120.8]
| },
| {
| name: "发展成效指数",
| type: "line",
| data: [100,104.8,106.3,110,114.6,118.7,120.3]
| },
| {
| name: "发展潜力指数",
| type: "line",
| data: [100,105.1,111.9,116.3,118.4,130.5,133.7]
| }
| ]
| };
| hyjjfz.setOption(HYJJFZoption);
| </script>
|
|