mirror of
https://github.com/apache/superset.git
synced 2026-04-17 15:15:20 +00:00
fix: drilling on the categorical xaxis on the stacked barchart v2 (#21844)
This commit is contained in:
@@ -31,8 +31,9 @@ import {
|
||||
isRecordAnnotationResult,
|
||||
isTableAnnotationLayer,
|
||||
isTimeseriesAnnotationResult,
|
||||
AxisType,
|
||||
} from '@superset-ui/core';
|
||||
import { AxisType, EchartsTimeseriesChartProps } from '../types';
|
||||
import { EchartsTimeseriesChartProps } from '../types';
|
||||
import { EchartsMixedTimeseriesProps } from '../MixedTimeseries/types';
|
||||
|
||||
export function evalFormula(
|
||||
|
||||
@@ -27,6 +27,7 @@ import {
|
||||
NumberFormats,
|
||||
NumberFormatter,
|
||||
TimeFormatter,
|
||||
AxisType,
|
||||
} from '@superset-ui/core';
|
||||
import { format, LegendComponentOption, SeriesOption } from 'echarts';
|
||||
import {
|
||||
@@ -34,7 +35,7 @@ import {
|
||||
NULL_STRING,
|
||||
TIMESERIES_CONSTANTS,
|
||||
} from '../constants';
|
||||
import { AxisType, LegendOrientation, LegendType, StackType } from '../types';
|
||||
import { LegendOrientation, LegendType, StackType } from '../types';
|
||||
import { defaultLegendPadding } from '../defaults';
|
||||
|
||||
function isDefined<T>(value: T | undefined | null): boolean {
|
||||
@@ -323,9 +324,9 @@ export const currentSeries = {
|
||||
|
||||
export function getAxisType(dataType?: GenericDataType): AxisType {
|
||||
if (dataType === GenericDataType.TEMPORAL) {
|
||||
return 'time';
|
||||
return AxisType.time;
|
||||
}
|
||||
return 'category';
|
||||
return AxisType.category;
|
||||
}
|
||||
|
||||
export function getOverMaxHiddenFormatter(
|
||||
|
||||
Reference in New Issue
Block a user