From e2d745a20aaf5e2f28876d2608e25be0d8e06abb Mon Sep 17 00:00:00 2001 From: wisonic-s Date: Tue, 23 Sep 2025 17:19:59 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=9B=BE=E8=A1=A8):=20=E6=A1=91=E5=9F=BA?= =?UTF-8?q?=E5=9B=BE=E4=B8=8D=E6=98=BE=E7=A4=BA=E7=A9=BA=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/js/panel/charts/g2/relation/sankey.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/g2/relation/sankey.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/g2/relation/sankey.ts index 0232363684..090466fab7 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/g2/relation/sankey.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/g2/relation/sankey.ts @@ -100,7 +100,13 @@ export class G2ChartBar extends G2ChartView { elementHighlight: true }, style: { - nodeStrokeOpacity: 0 + nodeStrokeOpacity: 0, + fillOpacity: 0.3 + }, + state: { + active: { + fillOpacity: 0.9 + } }, layout: { nodeSort: (a, b) => { @@ -192,6 +198,7 @@ export class G2ChartBar extends G2ChartView { } const labelStyle = { style: { + labelText: d => d.key || '', labelFill: label.color, labelFontSize: label.fontSize, labelFillOpacity: 1,