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
| <!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_QGHYSC" style="width:740px; height:420px;"></div> <!--全国海洋生产-->
| </body>
| </html>
| <script type="text/javascript">
| //全国海洋生产
| var divqghysc = document.getElementById("div_QGHYSC");
| var qghysc = echarts.init(divqghysc);
| var QGHYSCoption = {
| title : {
| text: '2010-2014年全国海洋生产总值',
| x:'left'
| },
| color:['#c1232b','#b5c334','#fcce10'],
| tooltip : {
| trigger: 'axis',
| },
| legend: {
| data:['第一产业','第二产业','第三产业'],
| x:'right'
| },
| toolbox: {
| show : true,
| orient:'vertical',
| y:'center',
| feature : {
| mark : {show: true},
| dataView : {show: true, readOnly: false},
| magicType : {show: true, type: ['line', 'bar']},
| restore : {show: true},
| saveAsImage : {show: true}
| }
| },
| calculable : true,
| xAxis : [
| {
| type : 'category',
| data : [2010,2011,2012,2013,2014]
| }
| ],
| yAxis : [
| {
| type : 'value',
| name:'万吨',
| }
| ],
| series : [
| {
| name:'第一产业',
| type:'bar',
| stack:'产业',
| data:[2008,2381.9,2670.6,3037.7,3109.5],
| },
| {
| name:'第二产业',
| type:'bar',
| stack:'产业',
| data:[18919.6,21667.6,23450.2,24608.9,26660],
| },
| {
| name:'第三产业',
| type:'bar',
| stack:'产业',
| data:[18691.6,21530.8,24052.1,27071.7,30929.6],
| }
| ]
| };
| qghysc.setOption(QGHYSCoption);
|
| </script>
|
|