Commit ca258deb by Torkel Odegaard

Merge branch 'master' of github.com:torkelo/grafana

parents 79ca0164 bf9c0bb9
...@@ -141,7 +141,12 @@ function (angular, $, kbn, moment, _) { ...@@ -141,7 +141,12 @@ function (angular, $, kbn, moment, _) {
}); });
if (panel.grid.threshold2) { 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({ options.grid.markings.push({
yaxis: { from: panel.grid.threshold2, to: limit2 }, yaxis: { from: panel.grid.threshold2, to: limit2 },
color: panel.grid.threshold2Color color: panel.grid.threshold2Color
......
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