updated the chart update example