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.

Is there a way to change the Legend Icon

Thread ID:





60425 May 4,2007 07:36 AM May 7,2007 05:25 AM Windows Forms 1
Tags: Chart
Nhilesh Baua
Asked On May 4, 2007 07:36 AM

Is there a way to change the Legand Icon.
I do not want the way the icon lines are displayed i.e. in a zigzag format,
I want them to be streight and clear indicating the styles applied.
Further if I can increase the width of the icon displayed per legand.


Ramya R [Syncfusion]
Replied On May 7, 2007 05:25 AM

Hi Nhilesh,

Thank you for your interest in Syncfusion Products.

1.You can change the icon of the Legend to a straight line by changing the representation type of the legend as shown in the Code snippet below,

this.chartControl1.Legend.RepresentationType = ChartLegendRepresentationType.StraightLine;

2. The size of the icon can be changed using the code snippet below,

this.chartControl1.Legend.ItemsSize=new Size(10,10);

Could you please provide me with some more information regarding the point "indicating the styles applied"?

Let me know if you have any queries.

Thanks & 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.

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.