Przeglądaj źródła

Merge pull request #306 from cruatta/master

Grafana needs hideLegend=false in graphite urls when show legend is selected for Graphite PNG
Torkel Ödegaard 11 lat temu
rodzic
commit
ccd5c01d91
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/app/directives/grafanaGraph.js

+ 1 - 1
src/app/directives/grafanaGraph.js

@@ -347,7 +347,7 @@ 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.legend.show ? '&hideLegend=false' : '&hideLegend=true';
           url += scope.panel.grid.min !== null ? '&yMin=' + scope.panel.grid.min : '';
           url += scope.panel.grid.max !== null ? '&yMax=' + scope.panel.grid.max : '';
           url += scope.panel['x-axis'] ? '' : '&hideAxes=true';