Support for negative thresholds.

This commit is contained in:
Johno Crawford 2014-11-25 19:31:35 +00:00
parent 846992930c
commit 8dfe85f23e

View File

@ -148,7 +148,7 @@ function (angular, app, _, $) {
var body = getBigValueHtml();
if (panel.colorBackground && data.mainValue) {
if (panel.colorBackground && !isNaN(data.mainValue)) {
var color = getColorForValue(data.mainValue);
if (color) {
$panelContainer.css('background-color', color);