feat(pie): add sort legend (#34323)

This commit is contained in:
SBIN2010
2025-08-29 22:19:14 +03:00
committed by GitHub
parent 54f071138c
commit dc7a8844eb
5 changed files with 128 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ import {
sharedControls,
} from '@superset-ui/chart-controls';
import { DEFAULT_FORM_DATA } from './types';
import { legendSection } from '../controls';
import { legendSection, legendSortControl } from '../controls';
const {
donut,
@@ -119,6 +119,7 @@ const config: ControlPanelConfig = {
},
],
...legendSection,
[legendSortControl],
// eslint-disable-next-line react/jsx-key
[<ControlSubSectionHeader>{t('Labels')}</ControlSubSectionHeader>],
[