Procházet zdrojové kódy

Added hideAxes and hideYAxis mapping support for png renderer. #22

Torkel Ödegaard před 12 roky
rodič
revize
487aa1f2c3
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      src/app/directives/grafanaGraph.js

+ 2 - 0
src/app/directives/grafanaGraph.js

@@ -177,6 +177,8 @@ function (angular, $, kbn, moment, _) {
           url += scope.panel.legend ? '' : '&hideLegend=true';
           url += scope.panel.legend ? '' : '&hideLegend=true';
           url += scope.panel.grid.min ? '&yMin=' + scope.panel.grid.min : '';
           url += scope.panel.grid.min ? '&yMin=' + scope.panel.grid.min : '';
           url += scope.panel.grid.max ? '&yMax=' + scope.panel.grid.max : '';
           url += scope.panel.grid.max ? '&yMax=' + scope.panel.grid.max : '';
+          url += scope.panel['x-axis'] ? '' : '&hideAxes=true';
+          url += scope.panel['y-axis'] ? '' : '&hideYAxis=true';
 
 
           switch(scope.panel.nullPointMode) {
           switch(scope.panel.nullPointMode) {
           case 'connected':
           case 'connected':