There are two ways to update data in a chart: either in adding and removing individual points, or updating the existing data with an entirely new set of data points.
[update data with varying lengths]