测试 用electron + springboot 构建桌面应用
he wei
2022-03-18 020c6ebe0c43b0a0cedb1b91b3520d223b3415c3
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
function getMarkLineData() {
  return [
    {
      name: '低告警',
      yAxis: 0,
      lineStyle: {
        width: 2,
        color: "#f9b253",
      },
      label: {
        color: "#000",
        fontSize: 16,
        formatter: "{b}:{c}",
        position: 'middle',
        padding: [6, 4, 2, 4],
        backgroundColor: "#f9b253",
        borderWidth: 2,
        borderColor: "#ffffff",
      },
      emphasis: {
        type: "dashed",
      },
    },
    {
      name: '高告警',
      yAxis: 0,
      lineStyle: {
        width: 2,
        color: "#f83030",
      },
      label: {
        color: "#ffffff",
        fontSize: 16,
        formatter: "{b}:{c}",
        position: 'middle',
        padding: [6, 4, 2, 4],
        backgroundColor: "#f83030",
        borderWidth: 2,
        borderColor: "#ffffff",
      },
      emphasis: {
        type: "dashed",
      },
    },
  ]
}
 
export default getMarkLineData;