FieldConfig: set min/max automatically for gauge (#21073)

This commit is contained in:
Ryan McKinley
2019-12-13 08:36:49 -08:00
committed by GitHub
parent e27ab89aed
commit 6de4933a4a
7 changed files with 72 additions and 61 deletions

View File

@@ -57,6 +57,7 @@ export class BarGaugePanel extends PureComponent<PanelProps<BarGaugeOptions>> {
replaceVariables,
theme: config.theme,
data: data.series,
autoMinMax: true,
});
};

View File

@@ -48,6 +48,7 @@ export class GaugePanel extends PureComponent<PanelProps<GaugeOptions>> {
replaceVariables,
theme: config.theme,
data: data.series,
autoMinMax: true,
});
};

View File

@@ -27,8 +27,6 @@ export const standardFieldDisplayOptions: FieldDisplayOptions = {
values: false,
calcs: [ReducerID.mean],
defaults: {
min: 0,
max: 100,
thresholds: [
{ value: -Infinity, color: 'green' },
{ value: 80, color: 'red' }, // 80%