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 + '%' }