From 1133f0863b6e20a7ca8823bcd4d8736be4bc54dc Mon Sep 17 00:00:00 2001 From: jianneng-fit2cloud Date: Wed, 4 Sep 2024 19:31:42 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8-=E4=BB=AA=E8=A1=A8?= =?UTF-8?q?=E7=9B=98):=20=E4=BF=AE=E5=A4=8D=E7=99=BE=E5=88=86=E6=AF=94?= =?UTF-8?q?=E5=88=BB=E5=BA=A6=E6=98=BE=E7=A4=BA=E4=B8=8D=E6=AD=A3=E7=A1=AE?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/chart/components/js/panel/charts/others/gauge.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/others/gauge.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/others/gauge.ts index 6f7062d1f1..36cd77b799 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/others/gauge.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/others/gauge.ts @@ -266,8 +266,7 @@ export class Gauge extends G2PlotChartView { return '' } if (gaugePercentLabel === false) { - const val = v === '0' ? min : v === '1' ? max : min + (max - min) * v - return valueFormatter(val, labelFormatter) + return v === '0' ? min : v === '1' ? max : min + (max - min) * v } return v === '0' ? v : v * 100 + '%' }