mirror of
https://github.com/grafana/grafana.git
synced 2025-01-18 04:23:33 -06:00
Fixed issue with legend values when all values are negative and some are null, #1468
This commit is contained in:
parent
de94b48d77
commit
cb04b7f4e2
@ -86,17 +86,19 @@ function (_, kbn) {
|
||||
}
|
||||
}
|
||||
|
||||
if (_.isNumber(currentValue)) {
|
||||
this.stats.total += currentValue;
|
||||
this.allIsNull = false;
|
||||
}
|
||||
if (currentValue !== null) {
|
||||
if (_.isNumber(currentValue)) {
|
||||
this.stats.total += currentValue;
|
||||
this.allIsNull = false;
|
||||
}
|
||||
|
||||
if (currentValue > this.stats.max) {
|
||||
this.stats.max = currentValue;
|
||||
}
|
||||
if (currentValue > this.stats.max) {
|
||||
this.stats.max = currentValue;
|
||||
}
|
||||
|
||||
if (currentValue < this.stats.min) {
|
||||
this.stats.min = currentValue;
|
||||
if (currentValue < this.stats.min) {
|
||||
this.stats.min = currentValue;
|
||||
}
|
||||
}
|
||||
|
||||
result.push([currentTime, currentValue]);
|
||||
|
Loading…
Reference in New Issue
Block a user