mirror of
https://github.com/apache/superset.git
synced 2026-04-21 09:04:38 +00:00
feat: Adds legacy time support for Waterfall chart (#26136)
This commit is contained in:
committed by
GitHub
parent
4f00404805
commit
f405ba033e
@@ -19,15 +19,14 @@
|
||||
import {
|
||||
buildQueryContext,
|
||||
ensureIsArray,
|
||||
getXAxisColumn,
|
||||
isXAxisSet,
|
||||
QueryFormData,
|
||||
} from '@superset-ui/core';
|
||||
|
||||
export default function buildQuery(formData: QueryFormData) {
|
||||
const { x_axis, granularity_sqla, groupby } = formData;
|
||||
const columns = [
|
||||
...(isXAxisSet(formData) ? ensureIsArray(getXAxisColumn(formData)) : []),
|
||||
...ensureIsArray(formData.groupby),
|
||||
...ensureIsArray(x_axis || granularity_sqla),
|
||||
...ensureIsArray(groupby),
|
||||
];
|
||||
return buildQueryContext(formData, baseQueryObject => [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user