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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Fine tune position of legend

Thread ID:





96473 Sep 15,2010 02:48 PM UTC Sep 20,2010 06:34 AM UTC ASP.NET Web Forms (Classic) 1
Tags: Chart
Steve Montgomery
Asked On September 15, 2010 02:48 PM UTC

Is there a way to fine tune the position of the legend on the graph?

Abdul Rahman A.H [Syncfusion]
Replied On September 20, 2010 06:34 AM UTC

Hi Steve,

You can make use of the following code to position Chart Legend.
//To set Legend position.
Point point = new Point(200, 200);
Chart.SetDock(MyChart.Areas[0].Legend, ChartDock.Floating);
MyChart.Areas[0].Legend.Arrange(new Rect(point.X, point.Y, MyChart.Areas[0].Legend.DesiredSize.Width, MyChart.Areas[0].Legend.DesiredSize.Height));

Please refer the sample attached herewith.

Abdul Rahman



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

or the page will be automatically redirected to 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