mirror of
https://github.com/dataease/dataease.git
synced 2026-06-16 20:42:07 +08:00
fix(图表): 修复对称条形图null值有柱体显示不正确的问题
This commit is contained in:
@@ -341,12 +341,22 @@ export class BidirectionalHorizontalBar extends G2ChartView {
|
||||
}
|
||||
defaultsDeep(firstMark, {
|
||||
style: {
|
||||
fill: firstColor
|
||||
fill: d => {
|
||||
if (d.value === null || d.value === undefined) {
|
||||
return 'transparent'
|
||||
}
|
||||
return firstColor
|
||||
}
|
||||
}
|
||||
})
|
||||
defaultsDeep(secondMark, {
|
||||
style: {
|
||||
fill: secondColor
|
||||
fill: d => {
|
||||
if (d.value === null || d.value === undefined) {
|
||||
return 'transparent'
|
||||
}
|
||||
return secondColor
|
||||
}
|
||||
}
|
||||
})
|
||||
return options
|
||||
|
||||
Reference in New Issue
Block a user