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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Is there a way to change the Legend Icon

Thread ID:





60425 May 4,2007 11:36 AM UTC May 7,2007 09:25 AM UTC WinForms 1
Tags: Chart
Nhilesh Baua
Asked On May 4, 2007 11:36 AM UTC

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 09:25 AM UTC

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.

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

Live Chat Icon For mobile
Live Chat Icon