Category / Section
How can I specify the position of a floating legend?
1 min read
When the LegendPosition property of the ChartControl is set to ChartDock.Floating, the position defaults to to the top-right corner of the ChartArea of the ChartControl.
You can specify coordinates via the Location property of the ChartLegend
.
C#
this.chartControl1.LegendPosition = ChartDock.Floating;
this.chartControl1.Legend.Location = new Point(20,20);
VB
Me.ChartControl1.LegendPosition = ChartDock.Floating
Me.ChartControl1.Legend.Location = New Point(20,20)