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,