fix(图表): 桑基图不显示空标签

This commit is contained in:
wisonic-s
2025-09-23 17:19:59 +08:00
committed by wisonic-s
parent d9b815cb39
commit e2d745a20a

View File

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