Articles in this section
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



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)


Did you find this information helpful?
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment