From de6825ef8faff2482bfc4ed2ab1ca8fe3923d875 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Tue, 31 Aug 2021 14:30:11 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-951=20fix=EF=BC=9A=E4=BF=AE=E6=94=B9bar?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=B0=8F=E6=95=B0=E7=82=B9=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/charts/chart-bar-statistics.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nezha-fronted/src/components/charts/chart-bar-statistics.vue b/nezha-fronted/src/components/charts/chart-bar-statistics.vue index 75b9ac0dd..d2f18c8d5 100644 --- a/nezha-fronted/src/components/charts/chart-bar-statistics.vue +++ b/nezha-fronted/src/components/charts/chart-bar-statistics.vue @@ -330,7 +330,7 @@ export default { } } const maxValueCopies = this.getMaxValue(seriesItem, chartItem) - let dot = this.chartDot = maxValueCopies.dot + let dot = this.chartDot = maxValueCopies.dot || 2 const maxValue = maxValueCopies.maxValue const copies = maxValueCopies.copies const unit = maxValueCopies.unit @@ -757,7 +757,7 @@ export default {
${this.legend[params.seriesIndex].alias}
value
-
${chartDataFormat.getUnit(chartInfo.unit ? chartInfo.unit : 2).compute(params.value[1], null, -1, this.chartDot)}
+
${chartDataFormat.getUnit(chartInfo.unit ? chartInfo.unit : 2).compute(params.value[1], null, -1, this.chartDot ? this.chartDot : 2 )}