We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Move location of floating legend

Thread ID:





16581 Jul 20,2004 11:09 AM UTC Dec 18,2006 09:07 PM UTC WinForms 3
Tags: Chart
Asked On July 20, 2004 11:09 AM UTC

Is there any way to move the location of a "floating" legend? i.e. it always defaults to the top-right of a chart - I''d like to specify co-ordinates via the Location property.

Davis Jebaraj [Syncfusion]
Replied On July 20, 2004 03:48 PM UTC

Hi Chris, Please set the FloatingAutoSize property of the ChartControl''s Legend to be false. this.chartControl1.LegendPosition = ChartLegendPosition.Floating; this.chartControl1.Legend.FloatingAutoSize = false; this.chartControl1.Legend.Location = new Point(20,20); Regards, Davis

Administrator [Syncfusion]
Replied On December 18, 2006 07:19 PM UTC

I can't seem to make this work, once I set the chart.Legend.Location = new Point(x, y); the Legend automatically docks itself to the bottom of the chart and the 5 items go horizonatal and overlap.
One minor difference that may cause this issue is I am using the function chart.GenerateImage(x, y) to display my chart.

I am using version

Administrator [Syncfusion]
Replied On December 18, 2006 09:07 PM UTC

Hi Chris,

Please have a look at the sample attached which will help you to set location of legend manually.

Chart Legend Sample

Let me know if this helps.

Please attach your sample which reproduces your problem if the problem continues.

Thank you for using Syncfusion products.

Best Regards,


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon