Chart series redraw performance

2 posts, 0 answers
  1. NiCK
    NiCK avatar
    1 posts
    Member since:
    Jul 2006

    Posted 21 Nov 2009 Link to this post

    I have a chart with between 2 and 5 series on it, one a bar chart and the others lines. Each series has around 100 points in it.

    I need to be able to change the y-values in one of the line series. I do this by binding to an observable collection using CollectionIndex and raising a CollectionChanged event with action NotifyCollectionChangedAction.Replace.

    This works but the performance is very poor and I get an ugly redraw involving a clear and refresh (as if I'd used NotifyCollectionChangedAction.Reset)

    Is there a better way to do this that would work faster without a complete redraw?

    Can I invalidate a single series any other way?

    Another thing I'd like to do is to mark a series invisible - how can this best be done?


  2. Vladimir Milev
    Vladimir Milev avatar
    1061 posts

    Posted 25 Nov 2009 Link to this post

    Hello NiCK,

    You are absolutely right. We are definitely not handling data updates in the best way.

    This is something that we will be visiting for the Q1 2010 release and will do our best to better  handle data updates. This is a pretty complex task and I cannot give you a 100% promise (that it will be done in time), but we will definitely consider this behavior with a high priority.

    Another thing I'd like to do is to mark a series invisible - how can this best be done?
    Unfortunately no. This is another item on our backlog. For now you can try hiding the PointMarks and setting the fill of the series to transparent.

    Vladimir Milev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top