mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
feat: improve color consistency (save all labels) (#19038)
This commit is contained in:
@@ -103,6 +103,7 @@ export default function transformProps(
|
||||
showLabels,
|
||||
showLegend,
|
||||
emitFilter,
|
||||
sliceId,
|
||||
}: EchartsFunnelFormData = {
|
||||
...DEFAULT_LEGEND_FORM_DATA,
|
||||
...DEFAULT_FUNNEL_FORM_DATA,
|
||||
@@ -145,7 +146,7 @@ export default function transformProps(
|
||||
value: datum[metricLabel],
|
||||
name,
|
||||
itemStyle: {
|
||||
color: colorFn(name),
|
||||
color: colorFn(name, sliceId),
|
||||
opacity: isFiltered
|
||||
? OpacityEnum.SemiTransparent
|
||||
: OpacityEnum.NonTransparent,
|
||||
|
||||
Reference in New Issue
Block a user