Overview plus detail chart with slider - Very slow

2 posts, 0 answers
  1. Sebastián Rosales
    Sebastián Rosales avatar
    2 posts
    Member since:
    May 2010

    Posted 20 May 2010 Link to this post

    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.
  2. Velin
    Velin avatar
    391 posts

    Posted 26 May 2010 Link to this post

    Hello Sebastián Rosales,

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

    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.
Back to Top