mirror of
https://github.com/apache/superset.git
synced 2024-09-07 06:17:45 -04:00
feat(explore): standardized controls for time pivot chart (#21321)
This commit is contained in:
parent
1cc2148538
commit
79525dfaf2
@ -20,6 +20,7 @@ import { t } from '@superset-ui/core';
|
||||
import {
|
||||
ControlPanelConfig,
|
||||
D3_FORMAT_OPTIONS,
|
||||
getStandardizedControls,
|
||||
sections,
|
||||
} from '@superset-ui/chart-controls';
|
||||
import {
|
||||
@ -123,6 +124,10 @@ const config: ControlPanelConfig = {
|
||||
clearable: false,
|
||||
},
|
||||
},
|
||||
formDataOverrides: formData => ({
|
||||
...formData,
|
||||
metric: getStandardizedControls().shiftMetric,
|
||||
}),
|
||||
};
|
||||
|
||||
export default config;
|
||||
|
Loading…
Reference in New Issue
Block a user