Rotate Axis labels

3 posts, 0 answers
  1. Jean-Francois
    Jean-Francois  avatar
    1 posts
    Member since:
    Nov 2013

    Posted 28 Jan 2015 Link to this post

    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. Pavel Pavlov
    Admin
    Pavel Pavlov avatar
    2039 posts

    Posted 29 Jan 2015 Link to this post

    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.

     
  3. DevCraft banner
  4. David
    David avatar
    1 posts
    Member since:
    Jun 2011

    Posted 26 Sep 2015 in reply to Jean-Francois Link to this post

    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

Back to Top