minor progress

This commit is contained in:
Maxime Beauchemin
2025-03-18 19:02:59 -07:00
parent 83f47d3ca1
commit 2f80ebb3e8
2 changed files with 3 additions and 2 deletions

View File

@@ -252,7 +252,6 @@ export default function transformProps(
label: {
show: true,
fontWeight: 'bold',
backgroundColor: theme.colors.grayscale.light5,
},
},
data: transformedData,

View File

@@ -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,