Limiting legend size

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
AndrewP
Newbie
Newbie
Posts: 20
Joined: Tue May 12, 2009 12:00 am

Limiting legend size

Post by AndrewP » Tue Sep 15, 2009 3:19 pm

I'm working with the Silverlight version of the chart and I've noticed the chart crashes if the legend gets too big (ie: if it takes up more space than the chart has available). Is it possible to limit the dimensions the legend takes up? Specifically I'm looking at the width of a vertical legend with one column.

I've tried by testing the legend's ActualWidth and using its Width and Height to manually cap it when it gets too large, but ActualWidth and ActualHeight only ever seem to be 0.0, and doing this causes the text to run off the legend.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Limiting legend size

Post by Narcís » Wed Sep 16, 2009 7:42 am

Hi AndrewP,

I could reproduce the problem here and added it (TW16014413) to the defect list to be fixed. In the meantime, the only solution I can think of is using the GetLegendText event for manually parsing legend's text.

Hope this helps!
Best Regards,
Narcís Calvet / 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