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
<!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_GKLK" style="width:740px; height:420px;"></div>   <!--沿海港口旅客-->
</body>
</html>
<script type="text/javascript">
    //沿海港口旅客
    var divgklk = document.getElementById("div_GKLK");
    var gklk = echarts.init(divgklk);
    var GKLKoption = {
        timeline : {
            data : [2010,2011,2012,2013,2014,2015,2016,2017,2018],
            label : {
                formatter : function(s) {
                    return s;
                }
            }
        },
        options:[
            {
                title : {
                    text: '2010年沿海港口旅客吞吐量',
                    subtext: '数据来源于交通运输部',
                    x:'center'
                },
                color:['#5d4dbe'],
                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 : ['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月']
                    }
                ],
                yAxis : [
                    {
                        type : 'value',
                        name:'万人',
                    }
                ],
                series : [
                    {
                        name:'数量',
                        type:'bar',
                        data:[434,585,517,578,559,534,624,653,616,572,500],
                    }
                ]
            },
            {
                title : {
                    text: '2011年沿海港口旅客吞吐量'
                },
                series : [
                    {
                        data:[557,687,539,610,607,582,697,734,592,603,536]
                    }
                ]
            },
            {
                title : {
                    text: '2012年沿海港口旅客吞吐量'
                },
                series : [
                    {
                        data:[631,666,527,604,576,538,685,671,565,621,500]
                    }
                ]
            },
            {
                title : {
                    text: '2013年沿海港口旅客吞吐量'
                },
                series : [
                    {
                        data:[539,747,588,583,539,512,648,692,557,589,496]
                    }
                ]
            },
            {
                title : {
                    text: '2014年沿海港口旅客吞吐量'
                },
                series : [
                    {
                        data:[604,731,525,600,554,544,663,746,607,608,502]
                    }
                ]
            },
            {
                title : {
                    text: '2015年沿海港口旅客吞吐量'
                },
                series : [
                    {
                        data:[482,482,638,634,589,533,597,749,573,602,517]
                    }
                ]
            },
            {
                title : {
                    text: '2016年沿海港口旅客吞吐量'
                },
                series : [
                    {
                        data:[518,899,552,604,566,556,650,689,557,591,522]
                    }
                ]
            },
            {
                title : {
                    text: '2017年沿海港口旅客吞吐量'
                },
                series : [
                    {
                        data:[713,853,562,644,570,519,629,700,520,662,556]
                    }
                ]
            },
            {
                title : {
                    text: '2018年沿海港口旅客吞吐量'
                },
                series : [
                    {
                        data:[589,1055]
                    }
                ]
            }
        ]
    };
    gklk.setOption(GKLKoption);
</script>