mirror of
https://github.com/apache/superset.git
synced 2026-04-20 08:34:37 +00:00
fix(plugin-chart-echarts): support numerical x-axis (#26087)
This commit is contained in:
@@ -25,12 +25,12 @@ import {
|
||||
DTTM_ALIAS,
|
||||
ensureIsArray,
|
||||
GenericDataType,
|
||||
LegendState,
|
||||
normalizeTimestamp,
|
||||
NumberFormats,
|
||||
NumberFormatter,
|
||||
TimeFormatter,
|
||||
SupersetTheme,
|
||||
normalizeTimestamp,
|
||||
LegendState,
|
||||
TimeFormatter,
|
||||
ValueFormatter,
|
||||
} from '@superset-ui/core';
|
||||
import { SortSeriesType } from '@superset-ui/chart-controls';
|
||||
@@ -512,6 +512,9 @@ export function getAxisType(dataType?: GenericDataType): AxisType {
|
||||
if (dataType === GenericDataType.TEMPORAL) {
|
||||
return AxisType.time;
|
||||
}
|
||||
if (dataType === GenericDataType.NUMERIC) {
|
||||
return AxisType.value;
|
||||
}
|
||||
return AxisType.category;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user