Merge pull request #1140 from johnou/support_negative_thresholds

Support for threshold colouring of zero / negative values.
This commit is contained in:
Torkel Ödegaard 2014-11-26 12:33:29 +01:00
commit 93e3908a63

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);