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 ec6f35f207..d3a8b1e002 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 @@ -276,7 +276,10 @@ export class Gauge extends G2PlotChartView { return '' } if (gaugePercentLabel === false) { - return v === '0' ? min : v === '1' ? max : min + (max - min) * v + const resultV = v === '0' ? min : v === '1' ? max : min + (max - min) * v + return labelFormatter.type === 'value' + ? valueFormatter(resultV, labelFormatter) + : resultV } return v === '0' ? v : v * 100 + '%' }