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

position my chart axis item below the x axis programmatically

4 Answers 101 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
al
Top achievements
Rank 1
al asked on 03 Jun 2008, 03:49 PM

Hello

I want to position my chart axis item below the x axis programmatically. For short text its ok. How can it be done?
Thank you.

 

 

4 Answers, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 04 Jun 2008, 09:52 AM
Hello al,

You can try setting RadChart1.AutoLayout to true as shown in this online example. You can also consider modifying the plot area margins and the x axis item labels rotation angle as shown in this online example. This would be done in code-behind like this:

RadChart1.PlotArea.Appearance.Dimensions.Margins.Bottom = Telerik.Charting.Styles.Unit.Percentage(20);
RadChart1.PlotArea.XAxis.Appearance.LabelAppearance.RotationAngle = 45;

Hope this helps.

Best wishes,
Ves
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
al
Top achievements
Rank 1
answered on 04 Jun 2008, 01:50 PM
Thank you Ves,
but it does not work. The text is across the x axis. When i wrap it, part of the text is not displayed. It worked in the 1.1 radchart without adding any properties.
Is it possible for me to post you a picture of the chart?
0
al
Top achievements
Rank 1
answered on 05 Jun 2008, 07:38 AM

i tried to increase the height of the block

chartAxisItem.TextBlock.Appearance.Dimensions.Height=..

But still is stays the same.
If i increase the height of the chart, it is the plot area that gets larger, the space below the x-axis stays the same.

0
Ves
Telerik team
answered on 06 Jun 2008, 03:28 PM
Hello al,

Please, find attached a sample page with long X axis labels, wrapped and rotated. Hope this helps.

Kind regards,
Ves
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Chart (Obsolete)
Asked by
al
Top achievements
Rank 1
Answers by
Ves
Telerik team
al
Top achievements
Rank 1
Share this question
or