chore: move xaxis to superset-ui (#20438)

This commit is contained in:
Yongjie Zhao
2022-06-20 22:36:27 +08:00
committed by GitHub
parent 60eb1094a4
commit 111affdb02
32 changed files with 192 additions and 174 deletions

View File

@@ -17,7 +17,7 @@
* under the License.
*/
import React from 'react';
import { FeatureFlag, isFeatureEnabled, t } from '@superset-ui/core';
import { t } from '@superset-ui/core';
import {
ControlPanelConfig,
ControlPanelsContainerProps,
@@ -31,10 +31,10 @@ import {
} from '@superset-ui/chart-controls';
import {
DEFAULT_FORM_DATA,
EchartsTimeseriesContributionType,
OrientationType,
} from '../../types';
import { DEFAULT_FORM_DATA } from '../../constants';
import {
legendSection,
richTooltipSection,
@@ -269,7 +269,7 @@ const config: ControlPanelConfig = {
label: t('Query'),
expanded: true,
controlSetRows: [
isFeatureEnabled(FeatureFlag.GENERIC_CHART_AXES) ? [xAxisControl] : [],
[xAxisControl],
['metrics'],
['groupby'],
[