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:
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.
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.