I've been following this excellent tutorial found here in order to learn how to create LineSeries plots using OxyPlot while following MVVC. I've also downloaded, and after some error fixing, managed to get the author's source code for the tutorial to compile and run. The source code on Github can be found here.
Unfortunately, while the code runs and the chart is created, the chart doesn't update itself every 5 seconds like it should. This is what the chart looks like on my machine forever. It doesn't update:
This is what it should look like, more plots should show as time increases:
Now, I've done some digging of my own to find out why it isn't updating. I've added some debugging commands to find whether new points are added correctly, as below:
I've checked that UpdateModel gets called every 5 seconds, and that measurements are correctly returning from GetUpdateData, and that the lineSerie.Points count is increasing before the end of the function. InvalidatePlot is also called in the actual View class.
Is there anything else I can do to solve this problem? Thanks