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