only update the chart when it's enabled