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

Binding RadChart to SeriesMappingCollection and ObservableCollection performance

3 Answers 56 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Hamilton
Top achievements
Rank 1
Hamilton asked on 08 Nov 2012, 06:51 AM
Hi,

We have a chart set up to bind ItemSource to an ObservableCollection and SeriesMapping to a SeriesMappingCollection.

We have 100 series that we want to render progressively 2 series at a time.  How we do this is by adding SeriesMapping entries to the SeriesMappingCollection and [internal class] entries to the ObservableCollection.

What we are finding is that up to 20 series, the chart renders OK.

Once we go over 20 series, the chart gets progressively slower and slower and slower in rendering the data.

Bear in mind that we had to put a sleep of 10millisceconds to allow the chart time to render each of the 2 series as it would otherwise render all 100 series at the same time.

Any suggestions or reasons as to why the chart gets progressively slower?

Lastly, whenever new SeriesMappings are added to a chart, does it need to repaint/redraw all the SeriesMappings?

Thank you for your assistance.

Tony

3 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 12 Nov 2012, 02:33 PM
Hello,

One possible option in this case would be to consider utilizing the ChartView component. It offers better performance.One demonstration is available in the following article:

http://demos.telerik.com/silverlight/#ChartView/LiveData

I hope this helps.

All the best,
Yavor
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Hamilton
Top achievements
Rank 1
answered on 12 Nov 2012, 11:43 PM
Hi Yavor,

Switching to Chartview was the 1st thing we tried - it did not help as we were still getting the progressive deterioration of performance.

The example you gave was 1 series updating progressively.

In our case, we are adding additional series progressively.

Thanks,

Tony
0
Yavor
Telerik team
answered on 13 Nov 2012, 07:24 AM
Hello,

I suspect that in this case the cause may be the sheer number of series added to the chart. In any case, to further look into the issue, it will be best if you open a formal support ticket, and send us a small working project, demonstrating your setup, and showing the unwanted behavior. We will review it locally, and advise you further.

All the best,
Yavor
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Chart
Asked by
Hamilton
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Hamilton
Top achievements
Rank 1
Share this question
or