Legend text and size

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
ctusch
Newbie
Newbie
Posts: 11
Joined: Tue Sep 25, 2007 12:00 am
Contact:

Legend text and size

Post by ctusch » Wed Apr 21, 2010 12:26 pm

Hello,

I have a legend with changing text per series (using the GetLegendText event). I have the following problem:

When the legend's alignment is top or bottom and the width (which I allow the user to set manually so the legend doesn't change in size all the time) is set below a point where the longest text won't fit into it anymore it sort of wraps around and nearly covers the whole charting area. (Actually there first needs to be a change in a legend text, before this it simply disappears.) The same thing happens when the legend's height is smaller than the height of a legend text.

When the legend's alignment is right or left this only happens when changing the legend's height. When the width gets too small the legend texts don't change, there are simply parts of them outside of the legend box (which would be okay).

Now what I want is that either the legend texts are clipped automatically (Legend.ClipText doesn't work) or that at least the legend box size doesn't change unexpectedly.

Thanks for any input in advance!

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

Re: Legend text and size

Post by Sandra » Thu Apr 22, 2010 10:43 am

Hello ctusch ,

I couldn't reproduce your problem here. Please, you could send us a simple project, because we can reproduce exactly your issue? You could attach your project directly in this post.

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