diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/bar/bidirectional-bar.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/bar/bidirectional-bar.ts index cd0812d4f0..0ac6e1f10e 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/bar/bidirectional-bar.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/bar/bidirectional-bar.ts @@ -446,7 +446,8 @@ export class BidirectionalHorizontalBar extends G2PlotChartView< layout, style: { fill: l.color, - fontSize: l.fontSize + fontSize: l.fontSize, + fontFamily: chart.fontFamily }, formatter: param => { let yaxis = yAxis[0] 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/charts/others/sankey.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/others/sankey.ts index 6605e4f04a..f751b9deb6 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/others/sankey.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/others/sankey.ts @@ -246,7 +246,8 @@ export class SankeyBar extends G2PlotChartView { style: { fill: labelAttr.color, fontSize: labelAttr.fontSize, - textAlign: isLast ? 'end' : 'start' + textAlign: isLast ? 'end' : 'start', + fontFamily: chart.fontFamily }, offsetX: isLast ? -8 : 8 } 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,