2
schangxiang@126.com
2024-08-16 b47c50a2a514def7374b32d7194b2c599cba5625
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
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Bottom.aspx.cs" Inherits="iWareWms.View.Echarts.PlaceMaterial.Detail.Bottom" %>
 
<!DOCTYPE html>
 
<html xmlns="http://www.w3.org/1999/xhtml" style="height: 100%">
<head runat="server">
    <title></title>
</head>
<body id="b1" style="height: 100%; margin: 0" onresize="bodyResize()">
    <form id="form1" runat="server">
        <f:PageManager ID="PageManager1" runat="server" />
              <div id="container" style="height: 200px;width:100%"></div>
 
    </form>
    <script src="../../../../res/js/echarts.js" ></script>
    <script src="../../../../res/js/echarts.min.js"></script>
 
 
    <script>
 
 
        var dom1 = document.getElementById("container");
        function dom1Load(a) {
            debugger;
 
          
            var p1 =
 
            [
                        { value: a[0].EmptyPlace, name: '空库库位' },
                        { value: a[0].FullPlace, name: '满库库位' },
                        { value: a[0].LockPlace, name: '锁定库位' }
            ];
            
           
            var myChart2 = echarts.init(dom1);
            option = {
                title: {
                    text: '库位占比详情',
                    subtext: '',
                    left:'8%'
                },
                tooltip: {
                    trigger: 'item',
                    formatter: "{a} <br/>{b} : {c} ({d}%)"
                },
                legend: {
                    left: '10%',
                    top:'15%',
                    orient: 'vertical',
                    data: ['空库库位', '满库库位', '锁定库位']
                },
                toolbox: {
                    show: true,
                    feature: {
                        mark: { show: true },
                        dataView: { show: true, readOnly: false },
                        magicType: {
                            show: true,
                            type: ['pie', 'funnel']
                        },
                        restore: { show: true },
                        saveAsImage: { show: true }
                    }
                },
                calculable: true,
                series: [
                    {
                        name: '所占面积',
                        type: 'pie',
                        radius: [30, 70],
                        center: ['45%', '50%'],
                        roseType: 'area',
                        data: p1
                    }
                ]
            };
            myChart2.setOption(option);
        }
 
    </script>
</body>
</html>