Redraw chart on window resize