Redraw chart when window size changed