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

How to Configure Y Axis to always show the ZERO Line

1 Answer 118 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Cheah KY
Top achievements
Rank 1
Cheah KY asked on 07 Apr 2010, 04:20 AM
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.


1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 09 Apr 2010, 07:37 AM
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.
Tags
Chart (Obsolete)
Asked by
Cheah KY
Top achievements
Rank 1
Answers by
Ves
Telerik team
Share this question
or