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

@@ -40,6 +40,7 @@ const {
outerRadius,
numberFormat,
showLabels,
roseType,
} = DEFAULT_FORM_DATA;
const config: ControlPanelConfig = {
@@ -87,6 +88,23 @@ const config: ControlPanelConfig = {
},
},
],
[
{
name: 'roseType',
config: {
type: 'SelectControl',
label: t('Rose Type'),
default: roseType,
renderTrigger: true,
choices: [
['area', t('Area')],
['radius', t('Radius')],
[null, t('None')],
],
description: t('Whether to show as Nightingale chart.'),
},
},
],
...legendSection,
// eslint-disable-next-line react/jsx-key
[<ControlSubSectionHeader>{t('Labels')}</ControlSubSectionHeader>],