From 028c7709639beb3ac164bfedaf74441c321a13a3 Mon Sep 17 00:00:00 2001 From: Ryan McKinley Date: Tue, 10 Nov 2020 00:41:57 -0800 Subject: [PATCH] StatPanels: set default to last (#28617) --- public/app/plugins/panel/stat/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/plugins/panel/stat/types.ts b/public/app/plugins/panel/stat/types.ts index 533189c2b98..7e2f96e0115 100644 --- a/public/app/plugins/panel/stat/types.ts +++ b/public/app/plugins/panel/stat/types.ts @@ -59,7 +59,7 @@ export function addStandardDataReduceOptions( name: 'Calculation', description: 'Choose a reducer function / calculation', editor: standardEditorsRegistry.get('stats-picker').editor as any, - defaultValue: [ReducerID.mean], + defaultValue: [ReducerID.lastNotNull], // Hides it when all values mode is on showIf: currentConfig => currentConfig.reduceOptions.values === false, });