Bug: legend is not removed if chart is destroyed

Legend element is not removed if a chart is destroyed. This looks ugly if the labels do change (labels will be drawn apon each other).