shi'sen'yuan 3 years ago
parent
commit
6e857bad71
1 changed files with 9 additions and 2 deletions
  1. 9 2
      ui/src/views/front/energyConsumption.vue

+ 9 - 2
ui/src/views/front/energyConsumption.vue

@@ -112,7 +112,7 @@ export default {
                   {
                     symbol: 'none',
                     x: '90%',
-                    yAxis: 'max'
+                    yAxis: 'max',
                   },
                   {
                     symbol: 'circle',
@@ -124,7 +124,14 @@ export default {
                     name: '最高点'
                   }
                 ]
-              ]
+              ],
+              label: {
+                normal: {
+                  textStyle: {
+                    color: 'white',//标注线终点文字颜色
+                  }
+                },
+              },
             },
             areaStyle: {
               color: new this.echarts.graphic.LinearGradient(0, 0, 0, 1, [