mirror of
https://github.com/apache/superset.git
synced 2026-06-09 09:39:25 +00:00
fix: missing nan value in timeseries chart (#1231)
This commit is contained in:
@@ -38,10 +38,12 @@ export default function buildQuery(formData: QueryFormData) {
|
||||
options: {
|
||||
index: ['__timestamp'],
|
||||
columns: formData.groupby || [],
|
||||
// Create 'dummy' sum aggregates to assign cell values in pivot table
|
||||
// Create 'dummy' mean aggregates to assign cell values in pivot table
|
||||
// use the 'mean' aggregates to avoid drop NaN
|
||||
aggregates: Object.fromEntries(
|
||||
metricLabels.map(metric => [metric, { operator: 'sum' }]),
|
||||
metricLabels.map(metric => [metric, { operator: 'mean' }]),
|
||||
),
|
||||
drop_missing_columns: false,
|
||||
},
|
||||
},
|
||||
formData.contributionMode
|
||||
|
||||
Reference in New Issue
Block a user