mirror of
https://github.com/apache/superset.git
synced 2024-09-18 19:49:37 -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 {
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user