Browse Source

Fixes #80, stacked percentage and min/max bug, Fixes #81 (grid y min/max not working)

Torkel Ödegaard 12 years ago
parent
commit
6c0f3d701f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/app/directives/grafanaGraph.js

+ 2 - 2
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);