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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
| <!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>
| <script th:src="@{${pubzyWebRoot} + 'BootStrap4/assets/js/jquery.min.js'}"></script>
| </head>
| <body>
| <div id="div_DQHYSC" style="width: 100%;"></div> <!--地区海洋生产-->
| </body>
| </html>
| <script type="text/javascript">
| jQuery(document).ready(function () {
| $("#div_DQHYSC").css("height", window.innerHeight);
|
| //地区海洋生产
| var divdqhysc = document.getElementById("div_DQHYSC");
| var dqhysc = echarts.init(divdqhysc);
| var DQHYSCoption = {
| title : {
| text: '海岛使用信息',
| x:'center',
| textStyle: {
| color: '#fff'
| }
| },
| color:['#c1232b','#b5c334','#fcce10'],
| tooltip : {
| trigger: 'axis',
| },
| calculable : true,
| xAxis : [
| {
| type : 'category',
| data : ['工业仓储','公共服务','工益服务','交通运输','旅游娱乐','渔业开发'],
| axisLabel: {
| show: true,
| textStyle: {
| color: '#fff'
| }
| },
| splitLine: {
| show: false
| },
| axisLine: {
| lineStyle: {
| color: "#fff"
| }
| },
| }
| ],
| yAxis : [
| {
| type : 'value',
| name:'数量(个)',
| splitLine: {
| show: false
| },
| axisLabel: {
| textStyle: {
| color: '#fff'
| }
| },
| axisLine: {
| lineStyle: {
| color: "#fff"
| }
| },
| },
| {
| type : 'value',
| name:'面积(公顷)',
| splitLine: {
| show: false
| },
| axisLabel: {
| textStyle: {
| color: '#fff'
| }
| },
| axisLine: {
| lineStyle: {
| color: "#fff"
| }
| },
| }
| ],
| series : [
| {
| name:'数量(个)',
| type:'bar',
| itemStyle: {
| normal: {
| color: '#186ffd',
| // color: 'rgba(127,231,193,0.09)',
| // barBorderColor: '#186ffd',
| barBorderWidth: 2,
| barBorderRadius: 5,
| // shadowBlur: 80,
| // shadowColor: 'rgba(255,255,255,1)',
| // shadowOffsetX: 0,
| // shadowOffsetY: 0
| }
| },
| data:[1, 1, 1, 3 ,10, 3],
| },
| {
| name:'面积(公顷)',
| type:'bar',
| yAxisIndex: 1,
| itemStyle: {
| normal: {
| color: '#a2da41',
| // color: 'rgba(127,231,193,0.09)',
| // barBorderColor: '#a2da41',
| barBorderWidth: 2,
| barBorderRadius: 5,
| // shadowBlur: 80,
| // shadowColor: 'rgba(255,255,255,1)',
| // shadowOffsetX: 0,
| // shadowOffsetY: 0
| }
| },
| data:[20, 100, 10, 9, 1680, 230],
| }
| ]
| };
| dqhysc.setOption(DQHYSCoption);
| });
| </script>
|
|