Skip to content

Commit

Permalink
feat(explore): standardized controls for time pivot chart (#21321)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenLYZ committed Sep 4, 2022
1 parent 1cc2148 commit 79525df
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { t } from '@superset-ui/core';
import {
ControlPanelConfig,
D3_FORMAT_OPTIONS,
getStandardizedControls,
sections,
} from '@superset-ui/chart-controls';
import {
Expand Down Expand Up @@ -123,6 +124,10 @@ const config: ControlPanelConfig = {
clearable: false,
},
},
formDataOverrides: formData => ({
...formData,
metric: getStandardizedControls().shiftMetric,
}),
};

export default config;

0 comments on commit 79525df

Please sign in to comment.