PieChart: Always show the calculation options dropdown in the editor. (#34267)

* Fix bug hiding calculation from piechart
This commit is contained in:
Oscar Kilhed
2021-05-19 09:24:51 +02:00
committed by GitHub
parent 89558f20bd
commit 6e2a9f2f32

View File

@@ -33,8 +33,6 @@ export const plugin = new PanelPlugin<PieChartOptions>(PieChartPanel)
description: 'Choose a reducer function / calculation',
editor: standardEditorsRegistry.get('stats-picker').editor as any,
defaultValue: [ReducerID.lastNotNull],
// Hides it when all values mode is on
showIf: (currentConfig) => currentConfig.reduceOptions.values === false,
})
.addRadio({
name: 'Piechart type',