How to position a floating legend in Windows Forms Chart

18 Nov 20181 minute to read

When the LegendPosition property of the WinForms Chart 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