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

@@ -36,7 +36,7 @@ import {
import { DEFAULT_FORM_DATA } from './types';
import { EchartsTimeseriesSeriesType } from '../Timeseries/types';
import { legendSection, richTooltipSection, xAxisControl } from '../controls';
import { legendSection, richTooltipSection } from '../controls';
const {
area,
@@ -295,7 +295,7 @@ const config: ControlPanelConfig = {
? {
label: t('Shared query fields'),
expanded: true,
controlSetRows: [[xAxisControl]],
controlSetRows: [['x_axis']],
}
: null,
createQuerySection(t('Query A'), ''),

View File

@@ -28,17 +28,17 @@ import {
QueryFormColumn,
} from '@superset-ui/core';
import {
DEFAULT_LEGEND_FORM_DATA,
EchartsLegendFormData,
EchartsTitleFormData,
DEFAULT_TITLE_FORM_DATA,
StackType,
} from '../types';
import {
DEFAULT_FORM_DATA as TIMESERIES_DEFAULTS,
EchartsTimeseriesContributionType,
EchartsTimeseriesSeriesType,
} from '../Timeseries/types';
} from '../types';
import {
DEFAULT_LEGEND_FORM_DATA,
DEFAULT_TITLE_FORM_DATA,
DEFAULT_FORM_DATA as TIMESERIES_DEFAULTS,
} from '../constants';
export type EchartsMixedTimeseriesFormData = QueryFormData & {
annotationLayers: AnnotationLayer[];