Add resize method for chart