Skip to content

Commit

Permalink
fix: make line chart query operate in time series mode (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
kristw authored and zhaoyongjie committed Nov 26, 2021
1 parent 4dd87b5 commit 911382f
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,13 @@ import { buildQueryContext } from '@superset-ui/chart';
import ChartFormData from './ChartFormData';

export default function buildQuery(formData: ChartFormData) {
return buildQueryContext(formData);
const queryContext = buildQueryContext(formData);

// Enforce time-series mode
queryContext.queries.forEach(query => {
const q = query;
q.is_timeseries = true;
});

return queryContext;
}

0 comments on commit 911382f

Please sign in to comment.