BarSeries and horizontal scroll

2 posts, 0 answers
  1. Michele
    Michele avatar
    426 posts
    Member since:
    Jun 2009

    Posted 20 Aug 2010 Link to this post

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

    Posted 25 Aug 2010 Link to this post

    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,
    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