diff --git a/superset-frontend/plugins/plugin-chart-echarts/src/Radar/transformProps.ts b/superset-frontend/plugins/plugin-chart-echarts/src/Radar/transformProps.ts index 7b7af34ae5f..c9d0d2cfe37 100644 --- a/superset-frontend/plugins/plugin-chart-echarts/src/Radar/transformProps.ts +++ b/superset-frontend/plugins/plugin-chart-echarts/src/Radar/transformProps.ts @@ -252,7 +252,6 @@ export default function transformProps( label: { show: true, fontWeight: 'bold', - backgroundColor: theme.colors.grayscale.light5, }, }, data: transformedData, diff --git a/superset-frontend/plugins/plugin-chart-echarts/src/Tree/transformProps.ts b/superset-frontend/plugins/plugin-chart-echarts/src/Tree/transformProps.ts index e0dc20ff542..6065545a11b 100644 --- a/superset-frontend/plugins/plugin-chart-echarts/src/Tree/transformProps.ts +++ b/superset-frontend/plugins/plugin-chart-echarts/src/Tree/transformProps.ts @@ -20,6 +20,7 @@ import { getMetricLabel, DataRecordValue, tooltipHtml, + themeObject, } from '@superset-ui/core'; import type { EChartsCoreOption } from 'echarts/core'; import type { TreeSeriesOption } from 'echarts/charts'; @@ -181,7 +182,7 @@ export default function transformProps( } }); } - + const { theme } = themeObject; const series: TreeSeriesOption[] = [ { type: 'tree', @@ -189,6 +190,7 @@ export default function transformProps( label: { ...DEFAULT_TREE_SERIES_OPTION.label, position: nodeLabelPosition, + color: theme.colorText, }, emphasis: { focus: emphasis }, animation: DEFAULT_TREE_SERIES_OPTION.animation,