From f16600ee86a48be11d143f7a4bcd30cc3a59fd79 Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Tue, 18 Mar 2025 17:39:21 -0700 Subject: [PATCH] fix sankey theme --- .../plugin-chart-echarts/src/Sankey/transformProps.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/superset-frontend/plugins/plugin-chart-echarts/src/Sankey/transformProps.ts b/superset-frontend/plugins/plugin-chart-echarts/src/Sankey/transformProps.ts index c3db5052bf1..3f2c057c8e0 100644 --- a/superset-frontend/plugins/plugin-chart-echarts/src/Sankey/transformProps.ts +++ b/superset-frontend/plugins/plugin-chart-echarts/src/Sankey/transformProps.ts @@ -26,6 +26,7 @@ import { getMetricLabel, getNumberFormatter, tooltipHtml, + themeObject, } from '@superset-ui/core'; import { SankeyChartProps, SankeyTransformedProps } from './types'; import { Refs } from '../types'; @@ -62,6 +63,7 @@ export default function transformProps( value, }); }); + const { theme } = themeObject; const seriesData: NonNullable = Array.from( set, @@ -70,6 +72,10 @@ export default function transformProps( itemStyle: { color: colorFn(name, sliceId), }, + label: { + color: theme.colorText, + textShadow: theme.colorBgBase, + }, })); // stores a map with the total values for each node considering the links