This question is locked. New answers and comments are not allowed.
Hi,
I'm using the Universal RadCartesianChart with ScatterSplineAreaSeries in a WP8.1 app + can't seem to update the ItemsSource once it's already been shown (works great the first time I set the data). My scenario is that a various events on the page (ie. flipview change) will mean a new set of points need to get rendered in the chart.
I've tried a multitude of techniques to get this working with no success (things also I see suggested for this control on other platforms) - it simply won't re-render the chart with new set of Data/Points I provided :
For example :
1) Used ObservableCollection<> for the data.
2) Raised INotifyPropertyChanged events on class hosting this Collection.
3) Tried directly clearing the ScatterSplineAreaSeries.ItemsSource to null + setting with new data.
4) Tried (3) but then tried setting with new data on new thread using Core.Dispatcher.
5) Tried calling various Update/Invalidate methods on the chart.
None of these seem to work at all.
I'm assuming if I instantiate a completely new instance of the entire control each time I want to change data that will likely work - but it's not a very efficient way to go (I want to it to be smooth/glitch free and not waste unneeded memory/cpu etc).
Any suggestions - or is this a bug which needs an updated version?
thanks
Niall
I'm using the Universal RadCartesianChart with ScatterSplineAreaSeries in a WP8.1 app + can't seem to update the ItemsSource once it's already been shown (works great the first time I set the data). My scenario is that a various events on the page (ie. flipview change) will mean a new set of points need to get rendered in the chart.
I've tried a multitude of techniques to get this working with no success (things also I see suggested for this control on other platforms) - it simply won't re-render the chart with new set of Data/Points I provided :
For example :
1) Used ObservableCollection<> for the data.
2) Raised INotifyPropertyChanged events on class hosting this Collection.
3) Tried directly clearing the ScatterSplineAreaSeries.ItemsSource to null + setting with new data.
4) Tried (3) but then tried setting with new data on new thread using Core.Dispatcher.
5) Tried calling various Update/Invalidate methods on the chart.
None of these seem to work at all.
I'm assuming if I instantiate a completely new instance of the entire control each time I want to change data that will likely work - but it's not a very efficient way to go (I want to it to be smooth/glitch free and not waste unneeded memory/cpu etc).
Any suggestions - or is this a bug which needs an updated version?
thanks
Niall