Replies: 2 comments 1 reply
-
Was able to figure out how to use the INotifyProperty to get new data points added without reloading the chart completely:
Simply load the series:
Then to add a value to the chart:
|
Beta Was this translation helpful? Give feedback.
-
For you help: It is dynamically adding value on the chart without reinitializing "Values". Just maintain a separate List<ObservableCollection> variable(for multiple axis otherwise just ObservableCollection) and update that. Make sure you assign this variable in LineSeries.Values. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
After creating a chart with Line series of datetimepoints I want to be able to add single points to the series using INotifyPropertyChanged (of LiveChartsCore.Defaults.DateTimePoint). I am able to create the chart initially however when I use AddItem() method of my viewmodel class it does not update the chart with the new added value.
This is my viewmodel code:
This is how I am using the ViewModelAuto class on my Winforms cartesianChart object, however the AddItem() method isn't showing the added point on the cartesianChart object when I add the point to the ViewModelAuto class _observableValues object.
Beta Was this translation helpful? Give feedback.
All reactions