Most efficient way to refresh data for a single data series?

Aug 29, 2012 at 12:18 PM

I have a single <oxy:Plot> object in a WPF application, with 11 LinearAxis and LineSeries objects attached to it.

I'd like the graph to update whenever the associated data is updated. Each update is always for only 2 of the LineSeries. I'm currently binding the ItemSource for each LineSeries to an array of data container objects in code behind, then calling RefreshData(true) on the Plot object. While that does work, it seems like there should be a more efficient way to handle the updates.

Is there?

I thought at first that just setting ItemSource again would be enough by itself to trigger an update, but that doesn't seem to be the case.