From 6c0f3d701f87f76c777dd250de2ef435ca31f347 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Mon, 10 Feb 2014 17:52:47 +0100 Subject: [PATCH] Fixes #80, stacked percentage and min/max bug, Fixes #81 (grid y min/max not working) --- src/app/directives/grafanaGraph.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/directives/grafanaGraph.js b/src/app/directives/grafanaGraph.js index 0fdd74e9a0c..61ba3be4744 100644 --- a/src/app/directives/grafanaGraph.js +++ b/src/app/directives/grafanaGraph.js @@ -249,8 +249,8 @@ function (angular, $, kbn, moment, _) { var defaults = { position: 'left', show: scope.panel['y-axis'], - min: null, - max: null, + min: scope.panel.grid.min, + max: scope.panel.percentage && scope.panel.stack ? 100 : scope.panel.grid.max, }; options.yaxes.push(defaults);