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

Overview plus detail chart with slider - Very slow

1 Answer 72 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Sebastián Rosales
Top achievements
Rank 1
Sebastián Rosales asked on 20 May 2010, 08:00 PM
Hi, i'm evaluating Telerik control for Silverlight. I implemented an overview plus detail chart using the RadSlider control to select an area of the overview chart, and then show a zoomed chart of that selected area. So there are two charts (the zoom chart is called zoomChart and the overview one is called chart) and a radSlider control over the overview chart.

Both charts are using a common DataSeries populated with 365 values. chart range is 1-365 and zoomChart range varies depending on radSlider values.
I added handlers for SelectionStartChanged and SelectionEndChanged of the RadSlider, to change the zoomChart range.

Here is the code for the handlers:
private void slider_SelectionStartChanged(object sender, RoutedPropertyChangedEventArgs<double> e) 
    _min = slider.SelectionStart; 
 
    chartZoom.DefaultView.ChartArea.AxisX.AddRange(_min, _max, 1); 
 
private void slider_SelectionEndChanged(object sender, RoutedPropertyChangedEventArgs<double> e) 
    _max = slider.SelectionEnd; 
 
    chartZoom.DefaultView.ChartArea.AxisX.AddRange(_min, _max, 1); 

where _min and _max are the actual minimum and maximum values of the zoomChart range.

The problem is that when i change radSlider values, both radSlider and zoomChart update very slow. ¿How can i improve performance?

Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Velin
Telerik team
answered on 26 May 2010, 07:53 AM
Hello Sebastián Rosales,

Could you please prepare and send us a small project where this issue can be observed? Thanks.

Greetings,
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
Sebastián Rosales
Top achievements
Rank 1
Answers by
Velin
Telerik team
Share this question
or