Page 1 of 1

Legendbox not showing all Items

Posted: Fri Aug 16, 2019 11:38 am
by denkhe
The horizontal Legendbox in the screenshot attached does not show all items. Is there a way to do this without scrolling?

Re: Legendbox not showing all Items

Posted: Fri Aug 16, 2019 12:29 pm
by Arction_LasseP
Hello,

LegendBoxes have Layout -property, which could be used here.

Code: Select all

_chart.ViewXY.LegendBoxes[0].Layout = LegendBoxLayout.Horizontal;

_chart.ViewXY.LegendBoxes[0].Layout = LegendBoxLayout.HorizontalRowSpan;
The difference between these two is that Horizontal arranges the items into a single row, whereas HorizontalRowSpan uses multiple rows if there isn't enough space. Using the latter might be the key here.

Best regards,
Lasse

Re: Legendbox not showing all Items

Posted: Wed Sep 11, 2019 12:14 pm
by denkhe
It worked!

Thanks
Heiko