Custom YAxis Title

2 posts, 0 answers
  1. Jérémy
    Jérémy avatar
    19 posts
    Member since:
    Feb 2015

    Posted 23 Apr 2015 Link to this post

    Hi,

    I wanna know if it's possible to "customize" the YAxis's Title like this :

    - I set the rotation value to "1" to put the Title in "hozitontaly mode" (may be is there a better way ?) and I want set 1 word by line in this title (because when the title is too long, it move the HtmlChart, and so the render is bad ..., as you can see on the attached file)

     - OR may be it's possible to put the Title above the Axis ?

     

    Thanks a lot,

    Regards

  2. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1492 posts

    Posted 24 Apr 2015 Link to this post

    Hello Vallin,

    To rotate the title you can use the RotationAngle property. To offset the title you can use textstyle->padding property. For example:

    <YAxis>
        <TitleAppearance Text="some title" RotationAngle="1">
            <TextStyle Padding="-300 0 0 0" />
        </TitleAppearance>
    </YAxis>

    Regarding wrapping the title you can use the "\n" line feed character, as illustrated here - http://demos.telerik.com/aspnet-ajax/htmlchart/examples/functionality/multiline-labels/defaultcs.aspx

    Regards,
    Danail Vasilev
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top