Page 1 of 1

Legend text and size

Posted: Wed Apr 21, 2010 12:26 pm
by 8741807
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!

Re: Legend text and size

Posted: Thu Apr 22, 2010 10:43 am
by 10050769
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,