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_GKJZX" style="width:740px; height:420px;"></div>   <!--沿海港口集装箱-->
</body>
</html>
<script type="text/javascript">
    //沿海港口集装箱
    var divgkjzx = document.getElementById("div_GKJZX");
    var gkjzx = echarts.init(divgkjzx);
    var GKJZXoption = {
        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:[1027.42,851.27,1003.87,1048.28,1123.57,1103.55,1149.85,1185.78,1145.8,1097.24,1182.49],
                    }
                ]
            },
            {
                title : {
                    text: '2011年沿海港口集装箱吞吐量'
                },
                series : [
                    {
                        data:[1221.87,885.38,1154.65,1193.95,1238.73,1229.48,1293.9,1296.43,1280.95,1241.76,1245.57]
                    }
                ]
            },
            {
                title : {
                    text: '2012年沿海港口集装箱吞吐量'
                },
                series : [
                    {
                        data:[1230.96,1059.52,1266.24,1288.17,1353.26,1338.59,1352.58,1346.05,1415.27,1336.85,1350.08]
                    }
                ]
            },
            {
                title : {
                    text: '2013年沿海港口集装箱吞吐量'
                },
                series : [
                    {
                        data:[1400.19,1075,1373.1,1398.96,1440.9,1423.93,1467.72,1474.58,1461.7,1431.68,1470.18]
                    }
                ]
            },
            {
                title : {
                    text: '2014年沿海港口集装箱吞吐量'
                },
                series : [
                    {
                        data:[1491.16,1141.58,1476.33,1511.05,1511.1,1525.34,1531.58,1582.88,1553.45,1563.91,1574.66]
                    }
                ]
            },
            {
                title : {
                    text: '2015年沿海港口集装箱吞吐量'
                },
                series : [
                    {
                        data:[1606.77,1606.77,1515.58,1582.46,1605.19,1590.34,1605.42,1597.61,1587.64,1563.4,1598]
                    }
                ]
            },
            {
                title : {
                    text: '2016年沿海港口集装箱吞吐量'
                },
                series : [
                    {
                        data:[1619.32,1276.54,1583.72,1627.78,1643.12,1653.05,1686.39,1711.12,1655.27,1645.29,1667.21]
                    }
                ]
            },
            {
                title : {
                    text: '2017年沿海港口集装箱吞吐量'
                },
                series : [
                    {
                        data:[1678.06,1367.98,1724.95,1735.42,1810.03,1788.08,1844.24,1828.54,1831.39,1778.37,1784.26]
                    }
                ]
            },
            {
                title : {
                    text: '2018年沿海港口集装箱吞吐量'
                },
                series : [
                    {
                        data:[1842.58,1498.64]
                    }
                ]
            }
        ]
    };
    gkjzx.setOption(GKJZXoption);
</script>