@ -43,6 +43,7 @@ export class Options {
minValue: this.minValue,
valueFormatter: (val: any) => val.toFixed(2),
defaultColor: 'green',
reversed: this.grafanaOptions.gauge.reversed,
stops: [
{
color: 'green',
@ -79,7 +79,13 @@ export const plugin = new PanelPlugin<PanelOptions>(Panel).setPanelOptions((buil
category: ['Extremum'],
showIf: (config) => config.visualizationType === Pod.GAUGE,
})
.addBooleanSwitch({
path: 'gauge.reversed',
name: 'Reversed',
defaultValue: false,
category: ['Direction'],
.addCustomEditor({
id: 'icons',
path: 'gauge.icons',
@ -4,6 +4,7 @@ export interface PanelOptions {
min: ExtremumOptions;
max: ExtremumOptions;
value: ExtremumOptions;
reversed: boolean;
};
}