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

Rotate X - Axis Label

4 Answers 164 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Matt Tapia
Top achievements
Rank 1
Matt Tapia asked on 06 Oct 2009, 04:53 PM
I have an bar chart with a series of bar columns and under each bar column on the x-axis is a label. The label text has been rotated 90 degrees counter-clockwise (appears to be default). I want the label text to be rotated 45 degress clockwise, so it will read better. how can I do that?

4 Answers, 1 is accepted

Sort by
0
Accepted
Giuseppe
Telerik team
answered on 07 Oct 2009, 08:45 AM
Hello Matt Tapia,

You can achieve the desired appearance through the RadChart.DefaultView.ChartArea.AxisX.LabelRotationAngle property.

Hope this helps.


Greetings,
Manuel
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.
0
Matt Tapia
Top achievements
Rank 1
answered on 07 Oct 2009, 03:30 PM
yes, that helps! thanks!
0
Mattias
Top achievements
Rank 1
answered on 13 Oct 2009, 02:26 PM
I have a question connected to this. I have rotated the labels (using XCategories) 45 degrees but having pretty long names it is sometimes hard to see which one belong to what.

Can I somehow make the end of the word point to the area (align or justify)? Or do I have to rotate it full 90 degrees?

Attached an image to show my problem.
0
Giuseppe
Telerik team
answered on 14 Oct 2009, 09:44 AM
Hi Mattias,

Unfortunately the control does not support this functionality at the moment (setting custom align / justify options for the labels) and it will not be possible to achieve the desired effect.

Nevertheless, we will forward your feedback to our developers so they can consider it for one of the future versions of the control.


Kind regards,
Manuel
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
Asked by
Matt Tapia
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
Matt Tapia
Top achievements
Rank 1
Mattias
Top achievements
Rank 1
Share this question
or