From 88d1d80721fccfa44fc5a4faccea8b1e9069bab8 Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Sat, 5 Aug 2023 00:12:48 +0800 Subject: [PATCH] =?UTF-8?q?FIX=20=20=E5=85=BB=E6=8A=A4=E5=A4=A7=E5=B1=8F?= =?UTF-8?q?=E5=90=84=E4=B9=A1=E9=95=87=E5=85=BB=E6=8A=A4=E5=BE=97=E5=88=86?= =?UTF-8?q?=E8=B6=8B=E5=8A=BF=E4=BB=A5=E5=8F=8A=E8=80=83=E6=A0=B8=E5=BE=97?= =?UTF-8?q?=E5=88=86=E6=83=85=E5=86=B5=E5=B1=95=E7=A4=BA=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../containers/footer/conserve/left/left-center.js | 8 +++++++- .../containers/footer/conserve/right/right-center.js | 12 +++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/web/client/src/sections/quanju/containers/footer/conserve/left/left-center.js b/web/client/src/sections/quanju/containers/footer/conserve/left/left-center.js index c03ce98f..860bf01c 100644 --- a/web/client/src/sections/quanju/containers/footer/conserve/left/left-center.js +++ b/web/client/src/sections/quanju/containers/footer/conserve/left/left-center.js @@ -56,7 +56,7 @@ const LeftCenter = (props) => { if (!s.data[i] && s.data[i] != 0) { s.data[i] = undefined } - } + } } setChartData({ @@ -99,12 +99,18 @@ const LeftCenter = (props) => { boundaryGap: false, axisTick: { show: false + }, + axisLabel: { + color: "#fff" } }, yAxis: { type: 'value', splitLine: { show: false + }, + axisLabel: { + color: "#fff" } }, tooltip: { diff --git a/web/client/src/sections/quanju/containers/footer/conserve/right/right-center.js b/web/client/src/sections/quanju/containers/footer/conserve/right/right-center.js index 52dc2f9d..dc35a319 100644 --- a/web/client/src/sections/quanju/containers/footer/conserve/right/right-center.js +++ b/web/client/src/sections/quanju/containers/footer/conserve/right/right-center.js @@ -84,13 +84,23 @@ const RightCenter = (props) => { data: fuckoff ? data.map(d => d.unit) : unitList, axisTick: { show: false + }, + axisLabel: { + color: "#fff" } }, yAxis: { type: 'value', splitLine: { show: false - } + }, + axisLabel: { + color: "#fff" + }, + min: function (value) { + return value.min - 20; + }, + scale: true }, tooltip: { trigger: "axis"