This is a migrated thread and some comments may be shown as answers.

Mapping an array or list to a dataseries

1 Answer 66 Views
Chart
This is a migrated thread and some comments may be shown as answers.
stephen
Top achievements
Rank 1
stephen asked on 17 Jun 2010, 12:48 AM
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

1 Answer, 1 is accepted

Sort by
0
Velin
Telerik team
answered on 22 Jun 2010, 01:07 PM
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
Tags
Chart
Asked by
stephen
Top achievements
Rank 1
Answers by
Velin
Telerik team
Share this question
or