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
<!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_DQHYSC" style="width:740px; height:420px;"></div>    <!--地区海洋生产-->
</body>
</html>
<script type="text/javascript">
    //地区海洋生产
    var divdqhysc = document.getElementById("div_DQHYSC");
    var dqhysc = echarts.init(divdqhysc);
    var DQHYSCoption = {
        title : {
            text: '2014年分地区海洋生产总值',
            x:'left'
        },
        color:['#c1232b','#b5c334','#fcce10'],
        tooltip : {
            trigger: 'axis',
        },
        legend: {
            data:['第一产业','第二产业','第三产业'],
            x:'right'
        },
        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 : ['辽宁','河北','天津','山东','江苏','上海','浙江','福建','广东','广西','海南']
            }
        ],
        yAxis : [
            {
                type : 'value',
                name:'万吨',
            }
        ],
        series : [
            {
                name:'第一产业',
                type:'bar',
                data:[418.7,75.2,14.6,794.5,316.2,4.3,427.6,480.8,201,175.9,200.8],
            },
            {
                name:'第二产业',
                type:'bar',
                data:[1411,1008.3,3127.3,5089,2894.7,2278.4,2004.5,2299.3,5993.9,373.5,180.1],
            },
            {
                name:'第三产业',
                type:'bar',
                data:[2087.3,968.2,1890.4,5404.5,2379.3,3966.2,3005.7,3200.2,7034.9,471.7,521.2],
            }
        ]
    };
    dqhysc.setOption(DQHYSCoption);
</script>