Browse Source

统计查询页面样式修改

DESKTOP-8OS7598\Administrator 1 year ago
parent
commit
58df896b56
1 changed files with 6 additions and 0 deletions
  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: [