feat(explore): standardized controls for time pivot chart (#21321)

This commit is contained in:
Stephen Liu 2022-09-04 09:38:53 +08:00 committed by GitHub
parent 1cc2148538
commit 79525dfaf2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,6 +20,7 @@ import { t } from '@superset-ui/core';
import { import {
ControlPanelConfig, ControlPanelConfig,
D3_FORMAT_OPTIONS, D3_FORMAT_OPTIONS,
getStandardizedControls,
sections, sections,
} from '@superset-ui/chart-controls'; } from '@superset-ui/chart-controls';
import { import {
@ -123,6 +124,10 @@ const config: ControlPanelConfig = {
clearable: false, clearable: false,
}, },
}, },
formDataOverrides: formData => ({
...formData,
metric: getStandardizedControls().shiftMetric,
}),
}; };
export default config; export default config;