mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
Support for negative thresholds.
This commit is contained in:
parent
846992930c
commit
8dfe85f23e
@ -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