This is an automated email from the ASF dual-hosted git repository. maximebeauchemin pushed a commit to branch template_less in repository https://gitbox.apache.org/repos/asf/superset.git
commit f16600ee86a48be11d143f7a4bcd30cc3a59fd79 Author: Maxime Beauchemin <[email protected]> AuthorDate: Tue Mar 18 17:39:21 2025 -0700 fix sankey theme --- .../plugins/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 c3db5052bf..3f2c057c8e 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<SankeySeriesOption['data']> = 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
