Kaynağa Gözat

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

Torkel Ödegaard 12 yıl önce
ebeveyn
işleme
487aa1f2c3
1 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  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.grid.min ? '&yMin=' + scope.panel.grid.min : '';
           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) {
           case 'connected':