fix(图表): 修复子弹图深色背景下目标值颜色为高亮颜色

This commit is contained in:
jianneng-fit2cloud
2025-04-03 13:51:49 +08:00
committed by jianneng-fit2cloud
parent 7353488fca
commit 2ee91ad5ec
2 changed files with 9 additions and 2 deletions

View File

@@ -295,7 +295,14 @@ export const THEME_ATTR_TRANS_MAIN = {
color: 'color',
proportionSeriesFormatter: ['color']
},
tooltip: ['color']
tooltip: ['color'],
misc: {
bullet: {
bar: {
target: ['fill']
}
}
}
}
export const THEME_ATTR_TRANS_MAIN_SYMBOL = {

View File

@@ -354,7 +354,7 @@ export class BulletGraph extends G2PlotChartView<G2BulletOptions, G2Bullet> {
'target',
targetName || chart.yAxisExt[0]?.name,
'line',
bullet.bar.target.fill,
[].concat(bullet.bar.target.fill)[0],
bullet.bar.ranges.symbolSize
)
)