fix: drilling on the categorical xaxis on the stacked barchart v2 (#21844)

This commit is contained in:
Yongjie Zhao
2022-10-18 19:47:53 +08:00
committed by GitHub
parent 383dc29ad1
commit f41d0b0cbf
9 changed files with 63 additions and 35 deletions

View File

@@ -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(

View File

@@ -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(