diff --git a/src/app/directives/grafanaGraph.js b/src/app/directives/grafanaGraph.js index ddb9e9492c8..bd4276ba8fa 100644 --- a/src/app/directives/grafanaGraph.js +++ b/src/app/directives/grafanaGraph.js @@ -174,6 +174,9 @@ function (angular, $, kbn, moment, _) { url += scope.panel.stack ? '&areaMode=stacked' : ''; url += scope.panel.fill !== 0 ? ('&areaAlpha=' + (scope.panel.fill/10).toFixed(1)) : ''; url += scope.panel.linewidth !== 0 ? '&lineWidth=' + scope.panel.linewidth : ''; + url += scope.panel.legend ? '' : '&hideLegend=true'; + url += scope.panel.grid.min ? '&yMin=' + scope.panel.grid.min : ''; + url += scope.panel.grid.max ? '&yMax=' + scope.panel.grid.max : ''; switch(scope.panel.nullPointMode) { case 'connected': diff --git a/src/app/panels/graphite/axisEditor.html b/src/app/panels/graphite/axisEditor.html index c535f3a1461..06e6418352d 100644 --- a/src/app/panels/graphite/axisEditor.html +++ b/src/app/panels/graphite/axisEditor.html @@ -40,19 +40,19 @@
Grid
- - + +
- - + +
Legend
- +
diff --git a/src/app/panels/graphite/module.js b/src/app/panels/graphite/module.js index f86d2a3e5ec..5a7f454a0d4 100644 --- a/src/app/panels/graphite/module.js +++ b/src/app/panels/graphite/module.js @@ -46,11 +46,11 @@ function (angular, app, $, _, kbn, moment, timeSeries) { src:'app/panels/graphite/editor.html' }, { - title:'Axis & Legends', + title:'Axes & Grid', src:'app/panels/graphite/axisEditor.html' }, { - title:'Style', + title:'Display Styles', src:'app/panels/graphite/styleEditor.html' } ], @@ -465,6 +465,11 @@ function (angular, app, $, _, kbn, moment, timeSeries) { $scope.render(); }; + $scope.toggleGridMinMax = function(key) { + $scope.panel.grid[key] = _.toggle($scope.panel.grid[key], null, 0); + $scope.render(); + }; + $scope.updateColumnSpan = function(span) { $scope.panel.span = span; $timeout($scope.render);