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

Performance Issue Adding Several DataSeries at Once

3 Answers 40 Views
Chart
This is a migrated thread and some comments may be shown as answers.
PoorLeno
Top achievements
Rank 1
PoorLeno asked on 30 Dec 2010, 07:27 AM

I have a deadline on the 31st of December, and this is the last telerik-related thing I need to fix in my program in order to get it approved, I would soooooo appreciate a quick answer, you have no idea. :)

When I add around 10 DataSeries (with 15 points in each) to a Chart, the Chart resizes itself several times and the entire animation is very slow. I am sure there's something I need to do before or after calling the following line on my IEnumerable of charts, but I can't figure out what it is.

I'd would be really grateful for an answer. 

myChart.DefaultView.ChartArea.DataSeries.AddRange( ... )

3 Answers, 1 is accepted

Sort by
0
Evgeni "Zammy" Petrov
Telerik team
answered on 30 Dec 2010, 03:43 PM
Hello PoorLeno,

What I understand by "resizing" is that it is the axis range that is changing.
You are using (most probably) autorange. I will suggest to manually set the range of the axis:
Check out this help topic : http://www.telerik.com/help/silverlight/radchart-features-axes-overview.html

Basically you will need to know what is the smallest and biggest value for each axis and set it as minvalue and maxvalue. 

Let me know if this helped you out.

All the best,
Evgeni "Zammy" Petrov
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
PoorLeno
Top achievements
Rank 1
answered on 30 Dec 2010, 10:03 PM

Hello, Evgenij, it seems that the problem was actually in the spline-definitions I used instead of simple lines. It's kinda a moot issue now, but for the reference is there a way to precompute the splines before actually laying them out? The graphs I am drawing are a result of a lengthy computation, it's not a big deal to wait a second for the splines to get ready.

Thank you very much for fast response.

0
Evgeni "Zammy" Petrov
Telerik team
answered on 04 Jan 2011, 08:04 AM
Hello,

 I do not understand what you mean by "precompute".  Splines are very easy to compute geometrical object, I do not believe there is any need of optimization there. I assume that if there is any problem with performance it is with the 10 series that you are putting in the chart.

Best wishes,
Evgeni "Zammy" Petrov
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
Tags
Chart
Asked by
PoorLeno
Top achievements
Rank 1
Answers by
Evgeni "Zammy" Petrov
Telerik team
PoorLeno
Top achievements
Rank 1
Share this question
or