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.
Unfortunately, activation email could not send to your email. Please try again.

Fine tune position of legend

Thread ID:





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

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 02:34 AM

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.

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.