From 06444b4951d8206127317cfaf266a67f15e5a95a Mon Sep 17 00:00:00 2001 From: ulleo Date: Fri, 18 Apr 2025 14:52:40 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E7=BB=84=E5=90=88=E5=9B=BE=E5=B7=A6=E8=BD=B4=E4=B8=8E=E6=A8=AA?= =?UTF-8?q?=E8=BD=B4=E5=AD=97=E4=BD=93=E8=AE=BE=E7=BD=AE=E4=B8=8D=E7=94=9F?= =?UTF-8?q?=E6=95=88=E7=9A=84=E9=97=AE=E9=A2=98=20#15876?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chart/components/js/panel/common/common_antv.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/core/core-frontend/src/views/chart/components/js/panel/common/common_antv.ts b/core/core-frontend/src/views/chart/components/js/panel/common/common_antv.ts index 65f601469b..2b1447f346 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/common/common_antv.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/common/common_antv.ts @@ -489,7 +489,8 @@ export function getXAxis(chart: Chart) { style: { fill: a.axisLabel.color, fontSize: a.axisLabel.fontSize, - textAlign: textAlign + textAlign: textAlign, + fontFamily: chart.fontFamily }, formatter: value => { return chart.type === 'bidirectional-bar' && value.length > a.axisLabel.lengthLimit @@ -594,7 +595,8 @@ export function getYAxis(chart: Chart) { fill: yAxis.axisLabel.color, fontSize: yAxis.axisLabel.fontSize, textBaseline, - textAlign + textAlign, + fontFamily: chart.fontFamily }, formatter: value => { return value.length > yAxis.axisLabel.lengthLimit @@ -695,7 +697,8 @@ export function getYAxisExt(chart: Chart) { fill: yAxis.axisLabel.color, fontSize: yAxis.axisLabel.fontSize, textBaseline, - textAlign + textAlign, + fontFamily: chart.fontFamily } } : null