legend box 2

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
fredd41
Posts: 113
Joined: Fri Sep 05, 2014 6:46 pm

legend box 2

Post by fredd41 » Wed Sep 10, 2014 2:15 pm

hi

2- is it possible to change the location of the legend manually: example
legendbox.left = 0
legendbox.top = 0
legendbox.width = me.width

3- I lost the legendbox if I select position = topleft, topcenter or topright

4- Is it possible to change the series icon in the legendbox : line -> box (more visible)

thanks

User avatar
ArctionPasi
Posts: 1367
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland
Contact:

Re: legend box 2

Post by ArctionPasi » Mon Sep 15, 2014 5:30 am

Hi,

2) set LegendBox.Position = TopLeft, and set LegendBox.Offset.X = 0, LegendBoxOffsetY = 0.
Width adjusts by contents and can't be explicitly set.

3) Offset is negative by default and therefore falls out of the screen. Set Offset values to 0 or positive

4) The legend box icons use the the style of the series. For example, adjust PointLineSeries.LineStyle.Width and the same width be the icon height.
You can also create 'dummy' series in your chart, that only appear on the legend box and not in the chart. For the dummy series, don't set data at all. This way, you can make different legend box icon than your data series has.

For the actual data series, set its Title.ShowInLegendBox = false and it doesn't appear in the legend box.
LightningChart Support Team, PT

fredd41
Posts: 113
Joined: Fri Sep 05, 2014 6:46 pm

Re: legend box 2

Post by fredd41 » Mon Sep 15, 2014 12:17 pm

ok thanks

Post Reply