Resizes chart when window resizes.