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

Rotate Axis labels

2 Answers 100 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jean-Francois
Top achievements
Rank 1
Jean-Francois asked on 28 Jan 2015, 03:28 PM
I am currently using the last version of the chart framework for iOS, and unlike the Android and Windows phone versions, i am unable to provide a specific angle for the rotation of the label.
I am already setting label fit mode to rotate, using this line of code, but it manages the rotation automatically.

self.graphPlaceholder.xAxis.style.labelStyle.fitMode=TKChartAxisLabelFitModeRotate;

In this specific case, The cliente has requested to rotate the labels to be vertical, so i need to set the rotation angle manually.

Is there any workaround i can use to accomplish this functionality?

Thanks in advance
Pedro

2 Answers, 1 is accepted

Sort by
0
Pavel Pavlov
Telerik team
answered on 29 Jan 2015, 02:46 PM
Hello Jean-Francois,

I am afraid the current version does not provide API to set the axis labels rotation angle.
However this is quite a reasonable feature request so we have scheduled it for implementation. 
You can follow the status here.

I am considering this as a valuable feedback. I have updated your Telerik points.

Regards,
Pavel Pavlov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
David
Top achievements
Rank 1
answered on 26 Sep 2015, 11:29 AM

Hi,

I think this post explains how to do it:

http://www.telerik.com/forums/yaxis-title-in-vertical-position

 

I just used it and it worked fine. The key to remember is that the angle needs to be in radians.

Cheers,

David

Tags
Chart
Asked by
Jean-Francois
Top achievements
Rank 1
Answers by
Pavel Pavlov
Telerik team
David
Top achievements
Rank 1
Share this question
or