added incremental updating of data for the chart.