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

Custom YAxis Title

1 Answer 44 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
Jérémy
Top achievements
Rank 1
Jérémy asked on 23 Apr 2015, 09:07 AM

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

1 Answer, 1 is accepted

Sort by
0
Danail Vasilev
Telerik team
answered on 24 Apr 2015, 08:20 AM
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.

 
Tags
Chart (HTML5)
Asked by
Jérémy
Top achievements
Rank 1
Answers by
Danail Vasilev
Telerik team
Share this question
or