2
13693261870
2022-09-16 653761a31dfeb50dd3d007e892d69c90bf0cdafc
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<!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',
            },
            // 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 : ['辽宁','河北','天津','山东','江苏','上海','浙江','福建','广东','广西','海南'],
                    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:'2015',
                    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:[21, 1, 1, 33 ,8, 3, 22, 41, 24, 6, 21],
                },
                {
                    name:'2016',
                    type:'bar',
                    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:[21, 1, 1, 34 ,8, 3, 23, 42, 25, 6, 22],
                },
                {
                    name:'增长值',
                    type:'line',
                    yAxisIndex: 1,
                    labelLine: {
                        normal: {
                            show: false,
                        }
                    },
                    itemStyle : {
                        normal : {
                            color: '#fff',
                            lineStyle:{
                                width:0,//折线宽度
                            }
                        }
 
                    },
                    data:[0, 0, 0, 1, 0, 0, 2, 1, 1, 0, 1]
                }
            ]
        };
        dqhysc.setOption(DQHYSCoption);
    });
</script>