|
@@ -354,7 +354,11 @@ const hexToRgba = (hex: string, alpha: number) => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const getBarBaseColor = (name: string, isDrilldown: boolean) => {
|
|
const getBarBaseColor = (name: string, isDrilldown: boolean) => {
|
|
|
- return chartColorMap[name] || (isDrilldown ? '#67c23a' : '#409eff')
|
|
|
|
|
|
|
+ if (isDrilldown && currentDrilldownKey.value) {
|
|
|
|
|
+ return chartColorMap[currentDrilldownKey.value] || '#67c23a'
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ return chartColorMap[name] || '#409eff'
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const getBarItemStyle = (name: string, isDrilldown: boolean) => {
|
|
const getBarItemStyle = (name: string, isDrilldown: boolean) => {
|