Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
815
force series to redraw
posted

Our XamDataChart has numeric X and multiple numeric Y axes with 5 to 15 curves plotted and also new data points added to each curve at about 1 point per second.

Is there a way to force a series to redraw its curve or to force all of the curves to redraw on the graph?

When we have a transformation operation applied to the graph, such as changing each curve from English units of measure to metric, some, but not all, of the curves do not get redrawn.

Changing from English to metric steps:

For each series on the graph
        a.  nc = new ObservableCollection<DataPoint>()
        b.  For each data point in the series collection
                   nc.Add (  copy the existing data point and then transform the new point units of measure )
        c. On the user interface thread { Series.DataCollection = nc }

This happens quickly and some of the series do not show up on the graph even though they have data in their collection.

We have not been able to determine the root cause but a guess is that it happens when we have multiple data series going to the same Y axis. 

Parents Reply Children