oxyplot / oxyplot-xamarin

OxyPlot for Xamarin.Mac and Xamarin.Forms
MIT License
64 stars 59 forks source link

How to add points in a LineSeries dynamically #107

Closed xroot3 closed 4 years ago

xroot3 commented 4 years ago

I try to add points in a LineSeries dynamically In a System.Timer,but it can not refresh real time ,what can I do to solve it?

VisualMelon commented 4 years ago

The library doesn't do any automatic refreshing (e.g. when you add/change datapoints): you need to call PlotModel.Invalidate(true) when you change data. This forces the series to update, and should cause the UI to refresh at its next convenience.

xroot3 commented 4 years ago

Thank you very much,I can draw it dynamically success!!!