diff --git a/src/app/directives/grafanaGraph.js b/src/app/directives/grafanaGraph.js index e7dec1abfd5..95e2848a8b1 100755 --- a/src/app/directives/grafanaGraph.js +++ b/src/app/directives/grafanaGraph.js @@ -258,8 +258,8 @@ function (angular, $, kbn, moment, _) { var defaults = { position: 'left', show: scope.panel['y-axis'], - min: scope.panel.grid.leftMin, - max: scope.panel.percentage && scope.panel.stack ? 100 : scope.panel.grid.leftMax, + min: scope.panel.grid.min, + max: scope.panel.percentage && scope.panel.stack ? 100 : scope.panel.grid.max, }; options.yaxes.push(defaults); @@ -267,8 +267,6 @@ function (angular, $, kbn, moment, _) { if (_.findWhere(data, {yaxis: 2})) { var secondY = _.clone(defaults); secondY.position = 'right'; - secondY.min = scope.panel.grid.rightMin; - secondY.max = scope.panel.percentage && scope.panel.stack ? 100 : scope.panel.grid.rightMax; options.yaxes.push(secondY); configureAxisMode(options.yaxes[1], scope.panel.y_formats[1]); } diff --git a/src/app/panels/graph/axisEditor.html b/src/app/panels/graph/axisEditor.html index e4f42687304..a87ffb435b2 100644 --- a/src/app/panels/graph/axisEditor.html +++ b/src/app/panels/graph/axisEditor.html @@ -36,20 +36,12 @@
Grid
- - + +
- - -
-
- - -
-
- - + +
diff --git a/src/app/panels/graph/module.js b/src/app/panels/graph/module.js index 1964b8fe526..0533c97b98d 100644 --- a/src/app/panels/graph/module.js +++ b/src/app/panels/graph/module.js @@ -95,10 +95,8 @@ function (angular, app, $, _, kbn, moment, timeSeries) { * grid.ma1::: Maximum y-axis value */ grid : { - leftMax: null, - rightMax: null, - leftMin: null, - rightMin: null, + max: null, + min: null, threshold1: null, threshold2: null, threshold1Color: 'rgba(216, 200, 27, 0.27)',