Scrolling

4 posts, 0 answers
  1. Paul Lewis
    Paul Lewis avatar
    31 posts
    Member since:
    Jan 2010

    Posted 19 Oct 2010 Link to this post

    Hi,

    Im having issues trying to get the scrolling working on my chart. 

    What Im trying to achieve:


    I would like 10 points in view at a time

    What Im getting:

    I can make the scrollbar appear but it doesnt do anything

    Background:

    I am binding to the chart and grouping on a company code

    my code:
    Commented out sections are things i have tried after looking at the help
    private void Charting()
     {
         RankChart.ItemsSource = null;
     
         RankChart.DefaultView.ChartArea.ZoomScrollSettingsX.ScrollMode = ScrollMode.ScrollOnly;
         RankChart.DefaultView.ChartArea.ZoomScrollSettingsX.MinZoomRange = 0.001;
         //RankChart.DefaultView.ChartArea.ZoomScrollSettingsX.RangeStart = 0.4;
         //RankChart.DefaultView.ChartArea.ZoomScrollSettingsX.RangeEnd = 1;
         //RankChart.DefaultView.ChartArea.ZoomScrollSettingsX.SetSelectionRange(0.4, 1);
         RankChart.DefaultView.ChartArea.AxisX.StepLabelLevelCount = 1;
     
         RankChart.SeriesMappings.Clear();
         RankChart.DefaultView.ChartArea.AxisX.LabelRotationAngle = 90;
         RankChart.DefaultView.ChartArea.AdditionalYAxes.Clear();
         RankChart.DefaultView.ChartArea.AdditionalYAxes.Add(new AxisY());
         RankChart.DefaultView.ChartArea.AdditionalYAxes[0].AxisName = "Secondary";
         RankChart.DefaultView.ChartArea.AdditionalYAxes[0].DefaultLabelFormat = "#VAL{p2}";
         RankChart.DefaultView.ChartArea.AxisX.AutoRange = false;
     
         RankChart.DefaultView.ChartArea.EnableAnimations = false;
         RankChart.SamplingSettings.SamplingFunction = ChartSamplingFunction.First;
         ScatterSeriesDefinition def2 = new ScatterSeriesDefinition();
         def2.AxisName = "Secondary";
         def2.LegendDisplayMode = LegendDisplayMode.None;
         def2.ItemLabelFormat = "#VAL{p}";
         def2.ItemToolTipFormat = "#VAL{p}";
         def2.ShowItemLabels = true;
         this.AddSeries(def2, "GrowthPCT");
     
         BarSeriesDefinition def1 = new BarSeriesDefinition();
         def1.InteractivitySettings.HoverScope = InteractivityScope.Item;
         def1.ShowItemLabels = false;
         def1.ShowItemToolTips = true;
         def1.ItemToolTipFormat = "Sales: #VAL{C4}";
     
         this.AddSeries(def1, "YTDSales");
         RankChart.DefaultView.ChartLegendPosition = Telerik.Windows.Controls.Dock.Bottom;
     
         RankChart.ItemsSource = this.DataContext;
     }
     
     private void AddSeries(ISeriesDefinition definition, string fieldName)
     {
         SeriesMapping s = new SeriesMapping();
         s.SeriesDefinition = definition;
         s.GroupingSettings.GroupDescriptors.Add(new ChartGroupDescriptor("Code"));
     
         s.ItemMappings.Add(new ItemMapping("Code", DataPointMember.XCategory));
         s.ItemMappings.Add(new ItemMapping(fieldName, DataPointMember.YValue));
     
         RankChart.SeriesMappings.Add(s);
     }


    any suggestions?
  2. Evgeni "Zammy" Petrov
    Admin
    Evgeni "Zammy" Petrov avatar
    168 posts

    Posted 20 Oct 2010 Link to this post

    Hi Paul,

    Thank you for contacting us.

    Currently we do not support this scenario (Grouping/Aggregation with Scrolling/ Zooming). We are working hard on changing this but we cannot commit to any date at the moment.

    Here is a link to a similar problem:
    http://www.telerik.com/community/forums/silverlight/chart/no-scrolling-when-grouping-is-used.aspx

    Ves has attached a project where he uses a ScrollViewer to simulate scrolling. I hope this work-around can help you out. Get back to us if we can do anything else for you.

    Kind regards,
    Evgeni "Zammy" Petrov
    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
  3. mike
    mike avatar
    23 posts
    Member since:
    Nov 2010

    Posted 03 Feb 2011 Link to this post

    Any news on this issue of not having zooming/scrolling with Grouping?
  4. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 08 Feb 2011 Link to this post

    Hi mike,

    Our developers investigated possible solutions for this missing feature thoroughly but unfortunately it turned out that the current implementation of the zooming / scrolling functionality cannot accommodate such grouped data scenario due to the specific way the charting data engine handles the grouped data.

    For the time being we cannot commit a timeframe for the availablity of such feature in the future as it would require significant changes to the design / architecture of the control.


    All the best,
    Giuseppe
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Back to Top