mirror of
https://github.com/grafana/grafana.git
synced 2025-01-09 23:53:25 -06:00
parent
fcaf2bfdba
commit
57ecb276c8
@ -279,7 +279,7 @@ class SingleStatCtrl extends MetricsPanelCtrl {
|
||||
|
||||
if (panel.prefix) { body += getSpan('singlestat-panel-prefix', panel.prefixFontSize, panel.prefix); }
|
||||
|
||||
var value = applyColoringThresholds(data.valueRounded, data.valueFormated);
|
||||
var value = applyColoringThresholds(data.value, data.valueFormated);
|
||||
body += getSpan('singlestat-panel-value', panel.valueFontSize, value);
|
||||
|
||||
if (panel.postfix) { body += getSpan('singlestat-panel-postfix', panel.postfixFontSize, panel.postfix); }
|
||||
|
@ -24,8 +24,6 @@ describe('grafanaSingleStat', function() {
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
describe('negative thresholds', () => {
|
||||
var data: any = {
|
||||
colorMap: ['green', 'yellow', 'red'],
|
||||
|
Loading…
Reference in New Issue
Block a user