echarts theming

This commit is contained in:
Maxime Beauchemin
2025-03-19 20:09:00 -07:00
parent 1ca0f34210
commit 11bc4965e3
10 changed files with 56 additions and 21 deletions

View File

@@ -274,7 +274,11 @@ export default function transformProps(
} else {
linearColorScale(totalSecondaryValue / totalValue);
}
const labelProps = {
color: theme.colorText,
textBorderColor: theme.colorBgBase,
textBorderWidth: 1,
};
const traverse = (
treeNodes: TreeNode[],
path: string[],
@@ -316,7 +320,7 @@ export default function transformProps(
opacity: OpacityEnum.SemiTransparent,
},
label: {
color: `rgba(0, 0, 0, ${OpacityEnum.SemiTransparent})`,
...labelProps,
},
};
}
@@ -356,10 +360,10 @@ export default function transformProps(
},
},
label: {
...labelProps,
width: (radius * 0.6) / (columns.length || 1),
show: showLabels,
formatter,
color: theme.colors.grayscale.dark2,
minAngle: minShowLabelAngle,
overflow: 'breakAll',
},
@@ -381,7 +385,6 @@ export default function transformProps(
}
: null,
};
return {
formData,
width,