update the chart visualization