Multiline vertical axis title/caption

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Amol
Advanced
Posts: 176
Joined: Mon May 29, 2006 12:00 am

Multiline vertical axis title/caption

Post by Amol » Wed Apr 13, 2011 7:56 pm

Hi,

I have a long caption for vertical axis which I would like to display in multiple lines. Text in the caption instead of wrapping to the next line, remains in a single line and becomes invisible beyond y-axis.

Can you please suggest something?

Thanks in advance,
Kirti

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Multiline vertical axis title/caption

Post by Sandra » Fri Apr 15, 2011 8:09 am

Hello Amol,

Text wrapping is not done automatically i.e. you'll have to use one of the chart events to:

a) retrieve chart width and title/subtitle text and size
b) based on this information, insert \n line separators at appropriate positions in text.
And also I recommend take a look in this thread concretely in last post of Narcís, so you can treat the same form the title of axis that title of chart.

I hope will helps.

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply