Commit 3dae915b by Torkel Ödegaard

Bar gauge icon updated

parent c05c3df5
...@@ -191,16 +191,18 @@ func getPanelSort(id string) int { ...@@ -191,16 +191,18 @@ func getPanelSort(id string) int {
sort = 2 sort = 2
case "gauge": case "gauge":
sort = 3 sort = 3
case "table": case "bargauge":
sort = 4 sort = 4
case "text": case "table":
sort = 5 sort = 5
case "heatmap": case "text":
sort = 6 sort = 6
case "alertlist": case "heatmap":
sort = 7 sort = 7
case "dashlist": case "alertlist":
sort = 8 sort = 8
case "dashlist":
sort = 9
} }
return sort return sort
} }
......
...@@ -18,10 +18,6 @@ export const PanelDefaults: BarGaugeOptions = { ...@@ -18,10 +18,6 @@ export const PanelDefaults: BarGaugeOptions = {
suffix: '', suffix: '',
stat: 'avg', stat: 'avg',
unit: 'none', unit: 'none',
thresholds: [ thresholds: [{ index: 2, value: 80, color: 'red' }, { index: 0, value: -Infinity, color: 'green' }],
{ index: 2, value: 80, color: 'red' },
{ index: 1, value: 50, color: 'orange' },
{ index: 0, value: -Infinity, color: 'green' },
],
valueMappings: [], valueMappings: [],
}; };
...@@ -25,5 +25,5 @@ export const PanelDefaults: GaugeOptions = { ...@@ -25,5 +25,5 @@ export const PanelDefaults: GaugeOptions = {
stat: 'avg', stat: 'avg',
unit: 'none', unit: 'none',
valueMappings: [], valueMappings: [],
thresholds: [], thresholds: [{ index: 1, value: 80, color: 'red' }, { index: 0, value: -Infinity, color: 'green' }],
}; };
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment