From 1eaee0206627fccbae8e4bc591f729f44c724965 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Tue, 14 Sep 2021 10:47:27 +0800 Subject: [PATCH] =?UTF-8?q?NEZ-951=20fix=EF=BC=9A=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E9=A2=84=E8=A7=88=E6=9F=B1=E7=8A=B6=E5=9B=BE=20legend=20?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE=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 | 2 +- nezha-fronted/src/components/charts/chartPreview.vue | 2 +- 2 files 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 ad61e526f..acd23d95d 100644 --- a/nezha-fronted/src/components/charts/chart-bar-statistics.vue +++ b/nezha-fronted/src/components/charts/chart-bar-statistics.vue @@ -756,7 +756,7 @@ export default { return `
-
${this.legend[params.seriesIndex].alias}
+
${this.legend[params.seriesIndex].alias}
value
${chartDataFormat.getUnit(chartInfo.unit ? chartInfo.unit : 2).compute(params.value[1], null, -1, this.chartDot ? this.chartDot : 2 )}
diff --git a/nezha-fronted/src/components/charts/chartPreview.vue b/nezha-fronted/src/components/charts/chartPreview.vue index 91b82f7b8..7023fd74a 100644 --- a/nezha-fronted/src/components/charts/chartPreview.vue +++ b/nezha-fronted/src/components/charts/chartPreview.vue @@ -1921,7 +1921,7 @@ export default { return `
-
${this.legend[params.dataIndex].alias}
+
${this.legend[params.seriesIndex].alias}
value
${chartDataFormat.getUnit(chartInfo.unit ? chartInfo.unit : 2).compute(params.value[1], null, -1, 2)}