Binding to large data source

2 posts, 0 answers
  1. Yoni Dagan
    Yoni Dagan avatar
    45 posts
    Member since:
    Sep 2009

    Posted 21 Jan 2010 Link to this post

    Hi,

    I'm trying to create an interactive graph for a large data source.
    When trying to bind the data source (list of Int) with about 50K data points, the application gets stuck on radChart1.DataBind();
    What is the recommended way to display a graph (line chart) for such data?

    Thanks,
    Yoni
  2. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 26 Jan 2010 Link to this post

    Hi Yoni,

    RadChart will have problems with thousands of items on screen. While the product was designed to be easily customizable and feature rich it does not cope well with extremely busy charts.The control is targeted for casual situations which do not require a high performance solution. There is a trade off to make between high customization and high performance and we've gone the rich features path as it is what most of our customers are interested in.

    You may consider applying some sort of sampling on the data:

    myData.Skip(i).Take(n).Average()

    where n is added to i in each loop, that is -- getting the first 50 items and calculating their average value, then the next 50 items and so on. Please accept our apologies for not being able to meet your requirements.

    Best regards,
    Ves
    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.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top