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
close icon

Fine tune position of legend

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


1 Reply

AR Abdul Rahman A.H Syncfusion Team 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.


Regards,
Abdul Rahman




ChartSample_6441f943.zip

Loader.
Live Chat Icon For mobile
Up arrow icon