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

BarSeries and horizontal scroll

1 Answer 60 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Michele
Top achievements
Rank 2
Michele asked on 20 Aug 2010, 12:17 PM
Hello,
I've got a chart that has at max 50 items in the Axis X ... instead of having them all near and unreadable (I need to show the Description (string) in the Axix-X) I wish to have the horizontal scrollbar moving and showing at start 10 items, moving on the right/left to show the other portion...
can someone give me some hints? I've tried to adapt che sample on the demos but with no luck...
Thanks

1 Answer, 1 is accepted

Sort by
0
Velin
Telerik team
answered on 25 Aug 2010, 04:24 PM
Hello Paolo,

You need code like this in order to scroll over the X axis:
RadChart1.DefaultView.ChartArea.EnableAnimations = false;           
RadChart1.DefaultView.ChartArea.ZoomScrollSettingsX.ScrollMode = ScrollMode.ScrollOnly;
RadChart1.DefaultView.ChartArea.ZoomScrollSettingsX.SetSelectionRange(0, .2);

Please, note that the SetSelectionRange method accepts min and max value between 0 and 1.

All the best,
Ryan
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
Michele
Top achievements
Rank 2
Answers by
Velin
Telerik team
Share this question
or