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

This commit is contained in:
Torkel Ödegaard 2014-02-10 17:52:47 +01:00
parent e86f4f94ef
commit 6c0f3d701f

View File

@ -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);