diff --git a/core/core-frontend/src/utils/canvasStyle.ts b/core/core-frontend/src/utils/canvasStyle.ts index 0e95411cef..2e15ddf56d 100644 --- a/core/core-frontend/src/utils/canvasStyle.ts +++ b/core/core-frontend/src/utils/canvasStyle.ts @@ -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 = { diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/bar/bullet-graph.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/bar/bullet-graph.ts index 72753fdd3c..1dc408212c 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/bar/bullet-graph.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/bar/bullet-graph.ts @@ -354,7 +354,7 @@ export class BulletGraph extends G2PlotChartView { 'target', targetName || chart.yAxisExt[0]?.name, 'line', - bullet.bar.target.fill, + [].concat(bullet.bar.target.fill)[0], bullet.bar.ranges.symbolSize ) )