mirror of
https://github.com/apache/superset.git
synced 2026-04-21 00:54:44 +00:00
feat: improve color consistency (save all labels) (#19038)
This commit is contained in:
@@ -119,6 +119,7 @@ function Icicle(element, props) {
|
||||
partitionThreshold,
|
||||
useRichTooltip,
|
||||
timeSeriesOption = 'not_time',
|
||||
sliceId,
|
||||
} = props;
|
||||
|
||||
const div = d3.select(element);
|
||||
@@ -385,7 +386,7 @@ function Icicle(element, props) {
|
||||
|
||||
// Apply color scheme
|
||||
g.selectAll('rect').style('fill', d => {
|
||||
d.color = colorFn(d.name);
|
||||
d.color = colorFn(d.name, sliceId);
|
||||
|
||||
return d.color;
|
||||
});
|
||||
|
||||
@@ -30,6 +30,7 @@ export default function transformProps(chartProps) {
|
||||
partitionThreshold,
|
||||
richTooltip,
|
||||
timeSeriesOption,
|
||||
sliceId,
|
||||
} = formData;
|
||||
const { verboseMap } = datasource;
|
||||
|
||||
@@ -48,5 +49,6 @@ export default function transformProps(chartProps) {
|
||||
timeSeriesOption,
|
||||
useLogScale: logScale,
|
||||
useRichTooltip: richTooltip,
|
||||
sliceId,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user