mirror of
https://github.com/apache/superset.git
synced 2026-04-25 11:04:48 +00:00
feat: generate consistent QueryObject whether GenericAxis is enabled or disabled (#21519)
This commit is contained in:
@@ -28,9 +28,9 @@ import {
|
||||
isTimeseriesAnnotationLayer,
|
||||
TimeseriesChartDataResponseResult,
|
||||
t,
|
||||
DTTM_ALIAS,
|
||||
getXAxis,
|
||||
} from '@superset-ui/core';
|
||||
import { getAxis, isDerivedSeries } from '@superset-ui/chart-controls';
|
||||
import { isDerivedSeries } from '@superset-ui/chart-controls';
|
||||
import { EChartsCoreOption, SeriesOption } from 'echarts';
|
||||
import { ZRLineType } from 'echarts/types/src/util/types';
|
||||
import {
|
||||
@@ -148,9 +148,7 @@ export default function transformProps(
|
||||
|
||||
const colorScale = CategoricalColorNamespace.getScale(colorScheme as string);
|
||||
const rebasedData = rebaseForecastDatum(data, verboseMap);
|
||||
// todo: if the both granularity_sqla and x_axis are `null`, should throw an error
|
||||
const xAxisCol =
|
||||
verboseMap[xAxisOrig] || getAxis(chartProps.rawFormData) || DTTM_ALIAS;
|
||||
const xAxisCol = getXAxis(chartProps.rawFormData) as string;
|
||||
const isHorizontal = orientation === OrientationType.horizontal;
|
||||
const { totalStackedValues, thresholdValues } = extractDataTotalValues(
|
||||
rebasedData,
|
||||
|
||||
Reference in New Issue
Block a user