Graph: fix for legends on the side and graph dimensions adaptation

pull/949/head
Torkel Ödegaard 11 years ago
parent 61f6bd2c80
commit f743288ce0
  1. 1
      src/app/components/settings.js
  2. 2
      src/app/directives/grafanaGraph.js

@ -17,6 +17,7 @@ function (_, crypto) {
window_title_prefix : 'Grafana - ',
panels : {
'graph': { path: 'panels/graph' },
'stats': { path: 'panels/stats' },
'text': { path: 'panels/text' }
},
plugins : {},

@ -207,6 +207,8 @@ function (angular, $, kbn, moment, _, GraphTooltip) {
}
if (shouldDelayDraw(panel)) {
// temp fix for legends on the side, need to render twice to get dimensions right
callPlot();
setTimeout(callPlot, 50);
legendSideLastValue = panel.legend.rightSide;
}

Loading…
Cancel
Save