update chart when options change