1
liuying
2024-04-25 6e3b6044ba218ba2c7cf4ad9d80821d8f78f1ff0
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
<template>
  <div class="left22">
    <div class="chart-name">
      事件统计
      <dv-decoration-3 style="width:200px;height:20px;" />
    </div>
    <dv-charts :option="option" />
  </div>
</template>
 
<script>
  export default {
    name: 'Left22',
    data() {
      return {
        option: {
          legend: {
            data: [{
                name: '商品订单',
                color: '#00baff'
              },
              {
                name: '呼叫',
                color: '#ff5ca9'
              },
              {
                name: '服务工单',
                color: '#3de7c9'
              }
            ],
            textStyle: {
              fill: '#fff'
            }
          },
          xAxis: {
            data: [
              '12/01', '12/02', '12/03', '12/04', '12/05', '12/06', '12/07'
            ],
            axisLine: {
              style: {
                stroke: '#F6F8FA'
              }
            },
            axisLabel: {
              style: {
                fill: '#F6F8FA'
              }
            },
            axisTick: {
              show: false
            }
          },
          yAxis: {
            data: 'value',
            splitLine: {
              show: false
            },
            axisLine: {
              style: {
                stroke: '#F6F8FA'
              }
            },
            axisLabel: {
              style: {
                fill: '#F6F8FA'
              }
            },
            axisTick: {
              show: false
            },
            min: 0,
            max: 8
          },
          series: [{
              name: '商品订单',
              data: [
                2.5, 3.5, 6.5, 6.5, 7.5, 6.5, 2.5
              ],
              type: 'bar',
              barStyle: {
                fill: 'rgba(0, 186, 255, 0.4)'
              }
            },
            {
              name: '呼叫',
              data: [
                2.5, 3.5, 6.5, 6.5, 7.5, 6.5, 2.5
              ],
              type: 'line',
              lineStyle: {
                stroke: '#ff5ca9'
              },
              linePoint: {
                radius: 4,
                style: {
                  fill: '#ff5ca9',
                  stroke: 'transparent'
                }
              }
            },
            {
              name: '服务工单',
              data: [
                1.3, 2.3, 5.3, 5.3, 6.3, 5.3, 1.3
              ],
              type: 'line',
              smooth: true,
              lineArea: {
                show: true,
                gradient: ['rgba(55, 162, 218, 0.6)', 'rgba(55, 162, 218, 0)']
              },
              lineStyle: {
                lineDash: [5, 5]
              },
              linePoint: {
                radius: 4,
                style: {
                  fill: '#00db95'
                }
              }
            }
          ]
        }
      }
    }
  }
</script>
 
<style lang="less">
  .left22 {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    background-color: rgba(6, 30, 93, 0.5);
 
    .chart-name {
      position: absolute;
      left: 10px;
      font-size: 14px;
      top: 10px;
      color: #6BD4E0;
    }
 
    .dv-charts-container {
      width: 98%;
      position: absolute;
      top: 1%;
      left: 1%;
      bottom: 0px;
    }
  }
</style>