Redraw chart on resize new approach

Redraw chart on resize of its container, new approach, this did work
for me.