Commit 93e3908a by Torkel Ödegaard

Merge pull request #1140 from johnou/support_negative_thresholds

Support for threshold colouring of zero / negative values.
parents bf5f6ce9 8dfe85f2
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment