Legendbox not showing all Items

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
denkhe
Posts: 5
Joined: Tue Jul 30, 2019 7:03 am

Legendbox not showing all Items

Post by denkhe » Fri Aug 16, 2019 11:38 am

The horizontal Legendbox in the screenshot attached does not show all items. Is there a way to do this without scrolling?
Attachments
Shows the incomplete Legendbox
Shows the incomplete Legendbox
LegendboxIncomplete.png (61.67 KiB) Viewed 4880 times

Arction_LasseP
Posts: 141
Joined: Wed Mar 27, 2019 1:05 pm

Re: Legendbox not showing all Items

Post by Arction_LasseP » Fri Aug 16, 2019 12:29 pm

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

denkhe
Posts: 5
Joined: Tue Jul 30, 2019 7:03 am

Re: Legendbox not showing all Items

Post by denkhe » Wed Sep 11, 2019 12:14 pm

It worked!

Thanks
Heiko

Post Reply