Hi,
I'm using lightning chart for a wpf application with a very simple use case where i want to display a single bar serie.
The displaying of the data is fine but i'm concerned about the position of the legend box. I want it to be displayed outside the chart area, at the right of the chart.
I've tried several options of the LegendBoxXY position object (RightCenter, for example) but it displays the legend inside the chart area... Is there a way to display the legend near the chart ?
Regards,
Clément
Legend box position
Moderator: Queue Moderators
-
- Posts: 555
- Joined: Mon Mar 14, 2016 9:22 am
Re: Legend box position
Hi Clément,
Yes, there is the way to get LegendBox on margins. Please enable AutoSpaceLegendBoxes and set desired position
and Bar's example may look like this
All the best.
Yes, there is the way to get LegendBox on margins. Please enable AutoSpaceLegendBoxes and set desired position
Code: Select all
_chart.ViewXY.AutoSpaceLegendBoxes = true;
_chart.ViewXY.LegendBoxes[0].Position = LegendBoxPositionXY.RightCenter;
Re: Legend box position
Works perfectly, thanks for the quick answer.
Clément
Clément