Browse Source

轴单位位置再调整回去

Karsa 2 years ago
parent
commit
dc484c116d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/hzyb/chart/Detail.vue

+ 2 - 2
src/views/hzyb/chart/Detail.vue

@@ -392,7 +392,7 @@ const setSplineOpt=(data)=>{
                 align: 'high',
                 rotation: 0,
                 y: -15,
-                x: [0,2].includes(item.IsAxis) ? -MaxlabelLen*10 : MaxlabelLen*10,
+                textAlign: item.IsAxis===1 ? 'left' : 'right',
                 reserveSpace: false
             },
             opposite: [0,2].includes(item.IsAxis),
@@ -589,7 +589,7 @@ const setStackOrCombinChart = data => {
                 align: 'high',
                 rotation: 0,
                 y: -15,
-                x: [0,2].includes(item.IsAxis) ? -MaxlabelLen*10 : MaxlabelLen*10,
+                textAlign: item.IsAxis===1 ? 'left' : 'right',
                 reserveSpace: false
             },
             opposite: [0,2].includes(item.IsAxis),