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
2085
XamData Chart Blanks on Refresh
posted

I have a XamDataChart that is periodically updated with new data.  I clear the chart of all series and re-add new series and when this happens, the chart will momentarily blank before it displays the new data - it seems like the act of clearing and re-adding series takes time and the visual display is trying to draw in the intermediate state.  Is there a way to prevent this from blanking until the entire chart is ready to be displayed?

Parents
  • 34510
    Suggested Answer
    Offline posted

    Hi Gary,

    How is the data updated?  Are new points being added/removed or is the entire collection being replaced?  In either case it would be better if you did not replace the entire series object.  If you are adding/removing items periodically then INotifyCollectionChanged notifications should be enough to update your series.  If you are replacing the entire collection then just assigning a new ItemsSource for the existing series is enough.  Replacing the series each time is not necessary as long as you just update the ItemsSource.

Reply Children