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

Oystein Bjorke fa 10 anys 0
This discussion was imported from CodePlex

RickNZ wrote at 2012-08-29 13:18:

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.