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

[Solved] Position X-Axis on the top of chart

2 Answers 439 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 09 Oct 2009, 01:17 PM
Hello,

I have a requirement in my project to position the X-Axis on the top of the plot area.  All other elements remain the same (e.g. the chart still goes from 0 to 5 on the Y-Axis with 0 in the bottom left corner and 5 in the top left corner.

I tried setting the x-axis label x-position to 200 hoping it would position the labels above the chart, but that didn't work.

Is this at all possible with the Telerik chart?

Thanks,
Matt Dixon

2 Answers, 1 is accepted

Sort by
0
Schlurk
Top achievements
Rank 2
answered on 09 Oct 2009, 08:56 PM
I do not think it's possible with RadChart since the only property I'm aware of switches the position of the x and y axis, but not the placement of a single axis.
0
Accepted
Ves
Telerik team
answered on 14 Oct 2009, 11:53 AM
Hi,

Actually, it is possible to move the X axis labels above the chart, using Matt's approach. Still, the axis line will remain at its original position. Here is the axis configuration:

<XAxis>
        <Appearance>
            <LabelAppearance Position-Auto="False" Position-X="0" Position-Y="-234">
            </LabelAppearance>
        </Appearance>
    </XAxis>

Note, that you need to set Position.Auto to false and Position.Y  with a negative value to move the labels upwards. You may also need to adjust the plot area margins or move / remove the chart title, so that it does not overlap with the X axis labels.

Greetings,
Ves
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Chart (Obsolete)
Asked by
Matt
Top achievements
Rank 1
Answers by
Schlurk
Top achievements
Rank 2
Ves
Telerik team
Share this question
or