Scrolling issue with Non Numeric X-Axis labels

2 posts, 0 answers
  1. SivaPrasad Bevara
    SivaPrasad Bevara avatar
    73 posts
    Member since:
    Oct 2012

    Posted 26 Sep 2011 Link to this post

    Hi,

    I am using Bar Chart for dipslaying the Categories and its counts.
    I am displaying the Category Name in the X-Aixs. I have 16 Categories to display in the X-Axis.
    The category labels are overlapping, when I display all the categories. So I wanted to use the scrolling for displaying the Categories.

    I tried scrolling with the following code.
    ZoomScrollSettings zoomSettings = new ZoomScrollSettings();
    zoomSettings.ScrollMode = ScrollMode.ScrollOnly;
    _chartArea.ZoomScrollSettingsX = zoomSettings;
    But it is not working. It is just shrinking the Items within the Chart Area.

    In all the examples I have seen, the scrolling is implemented with the Numeric X-Axis labels.

    Please provide some samples for implemeting the scrolling with Non Numeric X-Axis labels.

    I tried with setting the LabelStep. I think it will element some categories. I want to display all the categories with scrolling.

    Please help.

    Regards,
    SivaPrasad.B
  2. Nikolay
    Admin
    Nikolay avatar
    395 posts

    Posted 29 Sep 2011 Link to this post

    Hello Sivaprasad Bevara,

    We have had an issue when using the ScrollOnly mode in the 2011.Q2 release ( version 2011.2.712 ), that has been fixed for the Service Pack ( version 2011.2.920 ), which caused the scroll bar not to be displayed.

    In order to display only a specific range from the axis you would need to set the RangeStart, RangeEnd and also SliderSelectionStart and SliderSelectionEnd properties. Here is a sample code snippet demonstrating how to set the Zoom/Scroll setting for the X axis :
    <telerik:ChartArea.ZoomScrollSettingsX>
                                <telerik:ZoomScrollSettings ScrollMode="ScrollOnly" RangeStart="0.2" RangeEnd="0.4" SliderSelectionStart="0.2" SliderSelectionEnd="0.4"/>
                            </telerik:ChartArea.ZoomScrollSettingsX>

    This way scrolling would work for numeric, as well as categorical values.

    Hope this helps.

    Kind regards,
    Nikolay
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Back to Top