From 3bb931d4eb57fec4a857c9dd0b11f9643c3506e5 Mon Sep 17 00:00:00 2001
From: longyvfengyun <496960745@qq.com>
Date: 星期五, 17 十一月 2023 15:16:38 +0800
Subject: [PATCH] 内容提交

---
 src/components/echarts/options/normalLine.js |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/src/components/echarts/options/normalLine.js b/src/components/echarts/options/normalLine.js
index 67cf8aa..37e93e8 100644
--- a/src/components/echarts/options/normalLine.js
+++ b/src/components/echarts/options/normalLine.js
@@ -1,7 +1,7 @@
 const getNormalLine = (data)=>{
   const defaultOption = {
     minRatio: 0,
-    maxRatio: 1.2
+    maxRatio: 1.1
   };
   const option = {...defaultOption, ...data};
   return {
@@ -35,14 +35,14 @@
         },
       },
     },
-    yAxis: {
+    yAxis: [{
       type: 'value',
       min(data) {
         const min =data.min;
         if(isNaN(min)) {
           return 0;
         }else {
-          return min * option.minRatio;
+          return (min * option.minRatio).toHold(0);
         }
       },
       max(data) {
@@ -50,11 +50,10 @@
         if(isNaN(max)) {
           return 1;
         }else {
-          return max * option.maxRatio;
+          return (max * option.maxRatio).toHold(0);
         }
       },
       axisLabel: {
-        formatter: '{value}',
         color: '#e2e9ff',
       },
       axisLine: {
@@ -68,7 +67,7 @@
           color: 'rgba(255,255,255,0.12)'
         }
       }
-    },
+    }],
     series: []
   }
 }

--
Gitblit v1.9.1