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

ChartWebControl (Pie) and Legend positioning

Thread ID:





37624 Nov 28,2005 12:26 PM UTC Nov 29,2005 10:33 AM UTC WinForms 1
Tags: Chart
Administrator [Syncfusion]
Asked On November 28, 2005 12:26 PM UTC

Hi, I m not able to reposition the ChartLegend when the series added to the control is of type "Pie" in CHARTWEBCONTROL, When I say the following lines in the "InitializeChartData" method { chartControl1.Legend.Width = 50; chartControl1.Legend.Left = 20; chartControl1.Legend.Height = 70; } i m expecting the legend to be shown at the top left corner, but the legend shown actually has its own height and own width irrespective of the width and height that I have mentioned, nither it respects the location I have mentioned and it comes up at the Top-Right Position. Can any one help me by providing a sample code to show up the legend at a custom position. Thanks,Bubu

Administrator [Syncfusion]
Replied On November 29, 2005 10:33 AM UTC

Hi Bubu, 1)Using LegendAlignment property, you could show the Legend at the top left corner. The following code snippet illustrates this. this.ChartWebControl1.Legend.Position=ChartLegendPosition.Top; this.ChartWebControl1.Legend.LegendAlignment=System.Drawing.StringAlignment.Near; 2)Depending upon the ItemSize, the LegendSize will be minimized or maximized. This can be done using ItemSize property of the ChartWebControl. Regarding custom positioning of Legend, it is a known issue that has been internally fixed in the latest version. It will be publicly available in the latest version 4.0 due in another two weeks. Thanks for your continued interest in Syncfusion products. Regards, F.Rashidha


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