Fix Bug 936591, moved legend out of graph area

@jonasfj r?