mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -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); }
|
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);
|
body += getSpan('singlestat-panel-value', panel.valueFontSize, value);
|
||||||
|
|
||||||
if (panel.postfix) { body += getSpan('singlestat-panel-postfix', panel.postfixFontSize, panel.postfix); }
|
if (panel.postfix) { body += getSpan('singlestat-panel-postfix', panel.postfixFontSize, panel.postfix); }
|
||||||
|
@ -24,8 +24,6 @@ describe('grafanaSingleStat', function() {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
describe('negative thresholds', () => {
|
describe('negative thresholds', () => {
|
||||||
var data: any = {
|
var data: any = {
|
||||||
colorMap: ['green', 'yellow', 'red'],
|
colorMap: ['green', 'yellow', 'red'],
|
||||||
|
Loading…
Reference in New Issue
Block a user