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