mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Merge branch 'master' of github.com:torkelo/grafana
This commit is contained in:
commit
ca258deb7a
@ -141,7 +141,12 @@ function (angular, $, kbn, moment, _) {
|
||||
});
|
||||
|
||||
if (panel.grid.threshold2) {
|
||||
var limit2 = panel.grid.thresholdLine ? panel.grid.threshold2 : null;
|
||||
var limit2;
|
||||
if (panel.grid.thresholdLine) {
|
||||
limit2 = panel.grid.threshold2;
|
||||
} else {
|
||||
limit2 = panel.grid.threshold1 > panel.grid.threshold2 ? -Infinity : +Infinity;
|
||||
}
|
||||
options.grid.markings.push({
|
||||
yaxis: { from: panel.grid.threshold2, to: limit2 },
|
||||
color: panel.grid.threshold2Color
|
||||
|
Loading…
Reference in New Issue
Block a user