updating the chart