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) {