From 64ba0bb2894c38ce6e88ee4b7e94580f7f48713a Mon Sep 17 00:00:00 2001 From: jianneng-fit2cloud Date: Mon, 29 Jul 2024 21:32:31 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E6=9C=80=E5=80=BC=EF=BC=8C=E9=81=87=E5=88=B0?= =?UTF-8?q?=E7=A9=BA=E5=80=BC=E6=97=B6=EF=BC=8C=E5=B7=A6=E4=B8=8A=E8=A7=92?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E4=BA=86=E7=A9=BA=E5=80=BC=E6=A0=87=E8=AE=B0?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/chart/components/js/extremumUitl.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/core-frontend/src/views/chart/components/js/extremumUitl.ts b/core/core-frontend/src/views/chart/components/js/extremumUitl.ts index 7adbf89877..8fcba910dd 100644 --- a/core/core-frontend/src/views/chart/components/js/extremumUitl.ts +++ b/core/core-frontend/src/views/chart/components/js/extremumUitl.ts @@ -52,6 +52,10 @@ const getRgbaColorLastRgba = (rgbaString: string) => { } function createExtremumDiv(id, value, formatterCfg, chartId) { + // 空值不处理 + if (!value && value != 0) { + return + } // 装标注的div const parentElement = document.getElementById('point_' + chartId) if (parentElement) {