From a2925a4e007f848c4502ec1abeb02d13158bef0c Mon Sep 17 00:00:00 2001 From: zhangyu Date: Thu, 15 Jun 2023 10:44:58 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-2877=20=20fix=EF=BC=9A=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=8D=95=E4=BD=8D=E4=B8=BAnone=E6=97=B6=20=E5=A4=84=E7=90=86?= =?UTF-8?q?=E6=95=B0=E6=8D=AEnull=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nezha-fronted/src/components/chart/chartDataFormat.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nezha-fronted/src/components/chart/chartDataFormat.js b/nezha-fronted/src/components/chart/chartDataFormat.js index 0da95f87b..3509c7b2c 100644 --- a/nezha-fronted/src/components/chart/chartDataFormat.js +++ b/nezha-fronted/src/components/chart/chartDataFormat.js @@ -10,6 +10,9 @@ function none (value, index) { if (!numberWithEConvent(scientificNotationValue)) { return scientificNotationValue } + if (isNaN(value) || value=== null) { + return value + } return keepDoubleNumber(value) } function short (value, index, type = 1, dot) {