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 e5242809a4..35cd34b235 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 @@ -236,7 +236,7 @@ export class Gauge extends G2PlotChartView { if (label.show) { labelContent = { style: { - fontSize: `${label.fontSize}`, + fontSize: `${label.fontSize}px`, color: label.color }, formatter: function () {