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

Scrolling

3 Answers 60 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Paul Lewis
Top achievements
Rank 1
Paul Lewis asked on 19 Oct 2010, 12:42 PM
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?

3 Answers, 1 is accepted

Sort by
0
Evgeni "Zammy" Petrov
Telerik team
answered on 20 Oct 2010, 04:43 PM
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
0
mike
Top achievements
Rank 1
answered on 03 Feb 2011, 08:35 PM
Any news on this issue of not having zooming/scrolling with Grouping?
0
Giuseppe
Telerik team
answered on 08 Feb 2011, 10:26 AM
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>>
Tags
Chart
Asked by
Paul Lewis
Top achievements
Rank 1
Answers by
Evgeni "Zammy" Petrov
Telerik team
mike
Top achievements
Rank 1
Giuseppe
Telerik team
Share this question
or