mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
fix: Stacked charts with numerical columns (#26264)
This commit is contained in:
committed by
GitHub
parent
334e15997f
commit
429e2a33c3
@@ -508,11 +508,14 @@ export function sanitizeHtml(text: string): string {
|
||||
return format.encodeHTML(text);
|
||||
}
|
||||
|
||||
export function getAxisType(dataType?: GenericDataType): AxisType {
|
||||
export function getAxisType(
|
||||
stack: StackType,
|
||||
dataType?: GenericDataType,
|
||||
): AxisType {
|
||||
if (dataType === GenericDataType.TEMPORAL) {
|
||||
return AxisType.time;
|
||||
}
|
||||
if (dataType === GenericDataType.NUMERIC) {
|
||||
if (dataType === GenericDataType.NUMERIC && !stack) {
|
||||
return AxisType.value;
|
||||
}
|
||||
return AxisType.category;
|
||||
|
||||
Reference in New Issue
Block a user