mirror of
https://github.com/apache/superset.git
synced 2026-04-24 02:25:13 +00:00
feat: improve color consistency (save all labels) (#19038)
This commit is contained in:
@@ -109,6 +109,7 @@ export default function transformProps(
|
||||
showLegend,
|
||||
showLabelsThreshold,
|
||||
emitFilter,
|
||||
sliceId,
|
||||
}: EchartsPieFormData = {
|
||||
...DEFAULT_LEGEND_FORM_DATA,
|
||||
...DEFAULT_PIE_FORM_DATA,
|
||||
@@ -162,7 +163,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