mirror of
https://github.com/dataease/dataease.git
synced 2026-06-16 20:42:07 +08:00
fix(图表): 桑基图不显示空标签
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user