feat: add Nightingale chart support for echarts pie chart (#28597)

This commit is contained in:
Hex Café
2024-05-29 02:19:38 +08:00
committed by GitHub
parent 30dfd92577
commit f9d2451b23
8 changed files with 123 additions and 1 deletions

View File

@@ -156,6 +156,7 @@ export default function transformProps(
showLabelsThreshold,
sliceId,
showTotal,
roseType,
}: EchartsPieFormData = {
...DEFAULT_LEGEND_FORM_DATA,
...DEFAULT_PIE_FORM_DATA,
@@ -283,6 +284,7 @@ export default function transformProps(
type: 'pie',
...chartPadding,
animation: false,
roseType: roseType || undefined,
radius: [`${donut ? innerRadius : 0}%`, `${outerRadius}%`],
center: ['50%', '50%'],
avoidLabelOverlap: true,