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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:layout="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width">
    <title>海洋经济-全国海洋生产总值及增速</title>
    <script src="/js/PingTaiMenHuFile/GongNengQuHua/jquery-1.8.3.min.js" type="text/javascript"></script>
    <script th:src="@{${pubzyWebRoot} + 'echarts/echarts.min-3.0.js'}" type="text/javascript"></script>
    <style>
        body {
            margin: 0px;
            font-family: '微软雅黑',"Roboto", sans-serif !important;
        }
        .title {
            font-size: 14px !important;
        }
 
        #MainDiv {
            float: left;
            font-size: 12pt;
            width: 100%;
            text-align: center;
            height: 921px;
            margin-top: 12px;
        }
    </style>
<body>
<div>
    <div id="MainDiv">
        <div id="LDTZmain" class="main" style="width: 100%; height: 100%; -webkit-tap-highlight-color: transparent; user-select: none; background-color: rgba(0, 0, 0, 0); cursor: default;" _echarts_instance_="1545882117588"><div style="position: relative; overflow: hidden; width: 1920px; height: 921px;"><div data-zr-dom-id="bg" class="zr-element" style="position: absolute; left: 0px; top: 0px; width: 1920px; height: 921px; user-select: none;"></div><canvas width="1920" height="921" data-zr-dom-id="0" class="zr-element" style="position: absolute; left: 0px; top: 0px; width: 1920px; height: 921px; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></canvas><canvas width="1920" height="921" data-zr-dom-id="1" class="zr-element" style="position: absolute; left: 0px; top: 0px; width: 1920px; height: 921px; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></canvas><canvas width="1920" height="921" data-zr-dom-id="_zrender_hover_" class="zr-element" style="position: absolute; left: 0px; top: 0px; width: 1920px; height: 921px; user-select: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></canvas><div class="echarts-tooltip zr-element" style="position: absolute; display: block; border-style: solid; white-space: nowrap; transition: left 0.4s, top 0.4s; background-color: rgba(50, 50, 50, 0.498039); border-width: 0px; border-color: rgb(51, 51, 51); border-radius: 4px; color: rgb(255, 255, 255); font-family: 微软雅黑, Arial, Verdana, sans-serif; padding: 5px; left: 1501px; top: 613px;">广东省<br>确权面积(万公顷) : 10.37<br>投资额(亿元) : 6,568.19<br></div></div></div>
    </div>
</div>
 
 
<script type="text/javascript" th:inline="javascript">
    var category = ["2009年","2010年","2011年","2012年","2013年","2014年","2015年","2016年","2017年"];
    var MJ = ["32161.9","39619.2","45580.4","50172.9","54718.3","60699.1","65534.4","69693.7","77611.1"];
    var INVEST = ["8.8","15.3","10.0","8.1","7.8","7.9","7.0","6.7","6.9"];
    jQuery(document).ready(function () {
        $("#MainDiv").css("height", window.innerHeight - 12);
        loadEChart();
    });
 
    function loadEChart() {
        var myChart = echarts.init(document.getElementById('LDTZmain'), 'macarons');
        myChart.setOption({
            grid: {
                x:60,
                x2:60,
                y:140
            },
            color:['#008aff','#FF6666'],
            tooltip: {
                trigger: 'axis',
                axisPointer: {            // 坐标轴指示器,坐标轴触发有效
                    type: 'shadow'        // 默认为直线,可选为:'line' | 'shadow'
                },
 
            },
            title : {
                text: '海洋经济-全国海洋生产总值及增速',
                x: 28,
                y: 15,
                textStyle:{
                    fontSize: 20,
                    fontWeight:"bold",
                    color: "#4777FF"
                }
            },
            calculable: true,
            legend: {
                x:'left',
                padding: [65,0,0,33],
                data: ['全国海洋生产总值增速(%)','全国海洋生产总值(亿元)']
            },
            xAxis: [
                {
                    type: 'category',
                    axisLabel: {
                        textStyle: {
                            color: '#A9A9A9'
                        }
                    },
                    data: category,
                    axisLine:{
                        lineStyle:{
                            color:'#A9A9A9',
                        }
                    }
                },
            ],
            yAxis: [
                {
                    type: 'value',
                    name: '亿元',
                    axisLabel: {
                        formatter: '{value}',
                        textStyle: {
                            color: '#A9A9A9'
                        }
                    },
                    splitLine:{
                        show:true,
                        lineStyle:{
                            color: ['#E9E9E9'],
                            width: 1,
                            type: 'solid'
                        }
                    },
                    axisLine:{
                        lineStyle:{
                            color:'#A9A9A9',
                        }
                    }
                },
                {
                    show:false,
                    type: 'value',
                    name: '%',
                    axisLabel: {
                        formatter: '{value}',
                        textStyle: {
                            color: '#A9A9A9'
                        }
                    },
                    splitLine:{
                        show:false
                    },
                    axisLine:{
                        lineStyle:{
                            color:'#A9A9A9',
                        }
                    }
                }
            ],
            series: [
                {
                    name: '全国海洋生产总值(亿元)',
                    type: 'bar',
                    barWidth :30,
                    data: MJ,
                    // alert ykm 2019/03/04
                    // markPoint: {
                    //     data: [
                    //         {type: 'max', name: '最大值'}
                    //     ]
                    // }
                },
                {
                    name: '全国海洋生产总值增速(%)',
                    type: 'line',
                    width:1,
                    yAxisIndex: 1,
                    data: INVEST,
                    smooth: true,
                    symbolSize: 8,
                    areaStyle: {
                        normal: {
                            color: new echarts.graphic.LinearGradient(0, 0, 0.4, 1, [{
                                offset: 0, color: "#FFA9A9"
                            },{
                                offset: 0.4, color: "rgba(255,154,154,0.2)"
                            },{
                                offset: 1, color: "rgba(255,154,154,0)"
                            }
                            ])
                        }
                    },
                    itemStyle: {
                        normal: {
                            borderWidth:3            //拐点圆圈边框的宽度
                        }
                    },
                }
            ]
        });
 
    }
</script></body></html>