mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
feat: improve color consistency (save all labels) (#19038)
This commit is contained in:
@@ -184,6 +184,7 @@ export default function transformProps(chartProps: ChartProps): EchartsProps {
|
||||
baseEdgeWidth,
|
||||
baseNodeSize,
|
||||
edgeSymbol,
|
||||
sliceId,
|
||||
}: EchartsGraphFormData = { ...DEFAULT_GRAPH_FORM_DATA, ...formData };
|
||||
|
||||
const metricLabel = getMetricLabel(metric);
|
||||
@@ -264,7 +265,7 @@ export default function transformProps(chartProps: ChartProps): EchartsProps {
|
||||
type: 'graph',
|
||||
categories: categoryList.map(c => ({
|
||||
name: c,
|
||||
itemStyle: { color: colorFn(c) },
|
||||
itemStyle: { color: colorFn(c, sliceId) },
|
||||
})),
|
||||
layout,
|
||||
force: {
|
||||
|
||||
Reference in New Issue
Block a user