Category / Section
How can I specify the position of the floating Legend?
1 min read
When the LegendPosition property of the ChartControl is set to ChartDock.Floating, the position defaults to the bottom-left corner of the ChartWebArea of the ChartWebControl.
You can specify coordinates via the Location property of the ChartWebLegend
C#
this.ChartWebControl1.Legend.Position = ChartDock.Floating;
this.ChartWebControl1.Legend.Location = new Point(20,20);
VB
Me.ChartWebControl1.Legend.Position = ChartDock.Floating
Me.ChartWebControl1.Legend.Location = new Point(20,20)