Page 1 of 1

Limiting legend size

Posted: Tue Sep 15, 2009 3:19 pm
by 15653258
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.

Re: Limiting legend size

Posted: Wed Sep 16, 2009 7:42 am
by narcis
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!