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

Is there a way to change the Legend Icon

Hello,
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.

Thanks

1 Reply

Ramya R 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,
Ramya.
Loader.
Live Chat Icon For mobile
Up arrow icon