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
<!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_GKHW" style="width:740px; height:420px;"></div>   <!--沿海港口货物-->
</body>
</html>
<script type="text/javascript">
    //沿海港口货物
    var divgkhw = document.getElementById("div_GKHW");
    var gkhw = echarts.init(divgkhw);
    var GKHWoption = {
        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:[43948,38636,43982,45221,46667,46411,44980,45904,44684,45043,47341],
                    }
                ]
            },
            {
                title : {
                    text: '2011年沿海港口货物吞吐量'
                },
                series : [
                    {
                        data:[51363,43189,50402,50911,52607,51200,52346,52006,52156,52305,51015]
                    }
                ]
            },
            {
                title : {
                    text: '2012年沿海港口货物吞吐量'
                },
                series : [
                    {
 
                        data:[52745,49682,55403,55722,57299,54587,54598,53920,56996,57450,56220]
                    }
                ]
            },
            {
                title : {
                    text: '2013年沿海港口货物吞吐量'
                },
                series : [
                    {
                        data:[60001,52331,60990,60733,62187,60837,61409,61668,61407,61183,60599]
                    }
                ]
            },
            {
                title : {
                    text: '2014年沿海港口货物吞吐量'
                },
                series : [
                    {
                        data:[65186,55610,66378,65896,64394,64613,63394,65739,63346,64670,64220]
                    }
                ]
            },
            {
                title : {
                    text: '2015年沿海港口货物吞吐量'
                },
                series : [
                    {
                        data:[68101,68101,65080,65455,67015,67510,66444,66263,64264,63675,63126]
                    }
                ]
            },
            {
                title : {
                    text: '2016年沿海港口货物吞吐量'
                },
                series : [
                    {
                        data:[67573,59341,67096,67824,68768,68020,67781,68356,66741,68122,67678]
                    }
                ]
            },
            {
                title : {
                    text: '2017年沿海港口货物吞吐量'
                },
                series : [
                    {
                        data:[70803,64404,72816,72398,74415,72906,73679,72991,71404,72275,70250]
                    }
                ]
            },
            {
                title : {
                    text: '2018年沿海港口货物吞吐量'
                },
                series : [
                    {
                        data:[76731,67706]
                    }
                ]
            }
        ]
    };
    gkhw.setOption(GKHWoption);
</script>