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

This commit is contained in:
Torkel Ödegaard 2014-10-15 15:47:59 -04:00
parent 61f6bd2c80
commit f743288ce0
2 changed files with 3 additions and 0 deletions

View File

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

View File

@ -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;
}