From 09cb365ca63f7d6a6db2f2954da2d00256e07543 Mon Sep 17 00:00:00 2001 From: ulleo Date: Mon, 2 Dec 2024 19:03:10 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=9B=BE=E8=A1=A8):=20=E7=BC=A9=E7=95=A5?= =?UTF-8?q?=E8=BD=B4=E6=94=AF=E6=8C=81=E6=9B=B4=E6=8D=A2=E5=AD=97=E4=BD=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #13408 --- .../chart/components/js/panel/charts/line/stock-line.ts | 5 ++++- .../views/chart/components/js/panel/common/common_antv.ts | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/line/stock-line.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/line/stock-line.ts index b3126aa381..eb141c0b76 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/line/stock-line.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/line/stock-line.ts @@ -337,7 +337,10 @@ export class StockLine extends G2PlotChartView { data, slider: { start: 0.5, - end: 1 + end: 1, + textStyle: { + fontFamily: chart.fontFamily + } }, plots: [ { 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 dd4a1979cf..2bb73baa94 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 @@ -687,7 +687,8 @@ export function getSlider(chart: Chart) { } if (senior.functionCfg.sliderTextColor) { cfg.textStyle = { - fill: senior.functionCfg.sliderTextColor + fill: senior.functionCfg.sliderTextColor, + fontFamily: chart.fontFamily } cfg.handlerStyle = { fill: senior.functionCfg.sliderTextColor,