How to specify the position for a Floating Legend

4 Oct 2018 / 1 minute to read

When the LegendPosition property of the ChartControl is set to ChartDock.Floating, the position of the legend defaults to the top-right corner of the ChartArea. Once this is done, you can specify the coordinates via the Legend.Location property of the ChartLegend.

this.chartControl1.LegendPosition = ChartDock.Floating;

this.chartControl1.Legend.Location = new Point(20,20);
Me.ChartControl1.LegendPosition = ChartDock.Floating

Me.ChartControl1.Legend.Location = New Point(20,20)

See Also

Chart Legend