mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Merge pull request #1140 from johnou/support_negative_thresholds
Support for threshold colouring of zero / negative values.
This commit is contained in:
commit
93e3908a63
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user