Mapping an array or list to a dataseries

2 posts, 0 answers
  1. stephen
    stephen avatar
    1 posts
    Member since:
    Jun 2010

    Posted 16 Jun 2010 Link to this post

    I'd like to add multiple time series to a chart.  I understand I can do this using dataseries, where I create a dataseries for each time series i have and then add the datapoints one by one to the series.   This would normally be ok, but my time series have a lot of datapoints (30,000) in each.  The result is that the chart takes forever to load.  I've noticed that if I bind a list to the chart's itemssource property, then the chart loads very quickly - even if it is 30,000 data points.  So, my question is, can I somehow bind a list to each individual dataseries I want to load?  Will this make the chart load faster?

    -Steve
  2. Velin
    Admin
    Velin avatar
    391 posts

    Posted 22 Jun 2010 Link to this post

    Hi stephen,

    The RadChart control can be bound to a variety of different items source types. You can find more information about data binding RadChart here. To define multiple visual series instances you need to populate the SeriesMappings collection of the chart with as many SeriesMapping object as you need. Moreover, each series mapping should be mapped to a particular field name from the itemssource through ItemMapping objects as shown here

    Data binding is the recommended way to populate the chart control. Some of the features available in RadChart can be used only when data bound.

    Regards,
    Velin
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top