The bug was happening because the background color was being based on the rounded value (accounting the user defined decimals). Changed it to use the pure value (not the rounded) to follow whats being done in the value color, and also in the table thresholds (they don't consider the decimals when comparing to thresholds).
This commit is contained in:
committed by
Torkel Ödegaard
parent
1d4338ba54
commit
8c9cc4fae1
@@ -569,8 +569,8 @@ class SingleStatCtrl extends MetricsPanelCtrl {
|
||||
|
||||
var body = panel.gauge.show ? '' : getBigValueHtml();
|
||||
|
||||
if (panel.colorBackground && !isNaN(data.valueRounded)) {
|
||||
var color = getColorForValue(data, data.valueRounded);
|
||||
if (panel.colorBackground && !isNaN(data.value)) {
|
||||
var color = getColorForValue(data, data.value);
|
||||
if (color) {
|
||||
$panelContainer.css('background-color', color);
|
||||
if (scope.fullscreen) {
|
||||
|
||||
Reference in New Issue
Block a user