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
legend box 2
Moderator: Queue Moderators
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: legend box 2
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.
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