This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi there, In a chart, I have AreaSeries which binding to DataPoints which is the ObservableCollection of the Point(it is a property in my view model):
But this DataPoints is changing over some condition, for exapmle, a button click to generate the new DataPoints. The function for doing this is:
This is simple enough, right. But it takes a long time to accomplish. But if we don't bind this DataPoints to the AreaSeries. then the speed is back to normal. Can you tell me what is wrong here? Thanks Gordon |
|
|
Hello Gordon I currently have plans for optimizations that will greatly speed up this sort of dynamic data changes in the very near future. While you're waiting for these optimizations, there is one thing that you could do to work around the bad performance. Rather than clearing the collection, create a new ObservableCollection, add the data points to this collection, and then set your DataPoints property to be this new collection. Something like this:
Sorry for the inconvenience. -Jason |
|