mirror of
https://github.com/apache/superset.git
synced 2026-04-27 12:05:24 +00:00
feat: add Nightingale chart support for echarts pie chart (#28597)
This commit is contained in:
@@ -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>],
|
||||
|
||||
Reference in New Issue
Block a user