diff --git a/superset-frontend/temporary_superset_ui/superset-ui/plugins/plugin-chart-echarts/src/Timeseries/buildQuery.ts b/superset-frontend/temporary_superset_ui/superset-ui/plugins/plugin-chart-echarts/src/Timeseries/buildQuery.ts index bd4bbe5ac878a..c9dd3a96e5aed 100644 --- a/superset-frontend/temporary_superset_ui/superset-ui/plugins/plugin-chart-echarts/src/Timeseries/buildQuery.ts +++ b/superset-frontend/temporary_superset_ui/superset-ui/plugins/plugin-chart-echarts/src/Timeseries/buildQuery.ts @@ -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