瀏覽代碼

轴单位位置再调整回去

Karsa 2 年之前
父節點
當前提交
dc484c116d
共有 1 個文件被更改,包括 2 次插入2 次删除
  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),