Skip to content

Commit 9d4ce4a

Browse files
committed
fix: use average instead of sum as default aggregation for time series plot
The initial plot type for time filter animations defaults to AGGREGATION_TYPES.sum, causing misleading y-axis values (e.g. earthquake magnitudes showing as 2000/4000/6000 instead of actual values). All other aggregation defaults in the codebase use average. Fixes #3122 Signed-off-by: pierreeurope <pierre.europe@pm.me>
1 parent 8c5030c commit 9d4ce4a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils/src/plot.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,6 @@ export function getDefaultPlotType(filter, datasets) {
698698
interval,
699699
defaultTimeFormat,
700700
type: PLOT_TYPES.histogram,
701-
aggregation: AGGREGATION_TYPES.sum
701+
aggregation: AGGREGATION_TYPES.average
702702
};
703703
}

0 commit comments

Comments
 (0)