feat(图表): 缩略轴支持更换字体

#13408
This commit is contained in:
ulleo 2024-12-02 19:03:10 +08:00
parent 49ef25e300
commit 09cb365ca6
2 changed files with 6 additions and 2 deletions

View File

@ -337,7 +337,10 @@ export class StockLine extends G2PlotChartView<MixOptions, Mix> {
data,
slider: {
start: 0.5,
end: 1
end: 1,
textStyle: {
fontFamily: chart.fontFamily
}
},
plots: [
{

View File

@ -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,