From 2ee91ad5ecfa5ee26346304fde39106f444aaebd Mon Sep 17 00:00:00 2001 From: jianneng-fit2cloud Date: Thu, 3 Apr 2025 13:51:49 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=AD=90=E5=BC=B9=E5=9B=BE=E6=B7=B1=E8=89=B2=E8=83=8C=E6=99=AF?= =?UTF-8?q?=E4=B8=8B=E7=9B=AE=E6=A0=87=E5=80=BC=E9=A2=9C=E8=89=B2=E4=B8=BA?= =?UTF-8?q?=E9=AB=98=E4=BA=AE=E9=A2=9C=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/utils/canvasStyle.ts | 9 ++++++++- .../chart/components/js/panel/charts/bar/bullet-graph.ts | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) 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 ) )