How to Configure Y Axis to always show the ZERO Line

Thread is closed for posting
2 posts, 0 answers
  1. Cheah KY
    Cheah KY avatar
    3 posts
    Member since:
    Mar 2010

    Posted 06 Apr 2010 Link to this post

    This applies to BAR CHART.

    am trying to find ways how or where do i configure. so that Y Axis will always show the  0 indicator whenever there is negative value. 

    please refer to the attached screenshot on what am i trying to achieve here.

    thanks a lot in advance.


  2. Ves
    Admin
    Ves avatar
    2926 posts

    Posted 09 Apr 2010 Link to this post

    Hello Cheah KY,

    You can configure the scale breaks and chart segments manually, so that zero is displayed. Here is an example:

    <YAxis AutoScale="False" MaxValue="4000000" MinValue="-3500000" Step="500000">
        <ScaleBreaks Enabled="True">
            <Segments>
                <telerik:AxisSegment MaxValue="4000000" MinValue="-500000" Name=""
                    Step="500000" />
                <telerik:AxisSegment MaxValue="-1500000" MinValue="-3500000" Name=""
                    Step="500000" />
            </Segments>
        </ScaleBreaks>
    </YAxis>


    Best regards,
    Ves
    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