mirror of
https://github.com/apache/superset.git
synced 2026-04-25 02:55:07 +00:00
fix: custom SQL in the XAxis (#21847)
This commit is contained in:
@@ -28,8 +28,8 @@ import {
|
||||
isTimeseriesAnnotationLayer,
|
||||
TimeseriesChartDataResponseResult,
|
||||
t,
|
||||
getXAxis,
|
||||
AxisType,
|
||||
getXAxisLabel,
|
||||
} from '@superset-ui/core';
|
||||
import { isDerivedSeries } from '@superset-ui/chart-controls';
|
||||
import { EChartsCoreOption, SeriesOption } from 'echarts';
|
||||
@@ -148,7 +148,7 @@ export default function transformProps(
|
||||
|
||||
const colorScale = CategoricalColorNamespace.getScale(colorScheme as string);
|
||||
const rebasedData = rebaseForecastDatum(data, verboseMap);
|
||||
const xAxisCol = getXAxis(chartProps.rawFormData) as string;
|
||||
const xAxisCol = getXAxisLabel(chartProps.rawFormData) as string;
|
||||
const isHorizontal = orientation === OrientationType.horizontal;
|
||||
const { totalStackedValues, thresholdValues } = extractDataTotalValues(
|
||||
rebasedData,
|
||||
|
||||
Reference in New Issue
Block a user