소스 검색

统计查询页面样式修改

DESKTOP-8OS7598\Administrator 1 년 전
부모
커밋
58df896b56
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      UI2/src/views/tj/compoent/BarDobuleData.vue

+ 6 - 0
UI2/src/views/tj/compoent/BarDobuleData.vue

@@ -89,12 +89,18 @@ export default {
         yAxis: [
           {
             type: 'log',
+            min: 1,
             name: "单位(亩)",
             splitLine: {
               lineStyle: {
                 type: 'dashed',
               },
             },
+            axisLabel: {
+              formatter: function (value) {
+                return value === 1 ? 0 : value;//第2步,将y轴最小值1变成从0开始;
+              }
+            },
           }
         ],
         series: [