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

Pb with Legend

Hi,

I'm evaluating Essential Chart and I'm having troubles. My chart is a pie with a legend at bottom.

- Legend.ItemsSize and Legend.representationType don'tnot work
- I don't know how to change font size for the legend items.

Thanks

1 Reply

RF Rashidha F Syncfusion Team May 28, 2007 02:28 PM UTC

Hi,

My apologies for the delay in responding to you.

You can able to achieve your requirement using RepresentationType and ItemsSize property in chart web control.

The following code snippet exhibit how to set the size of the legend and how to change the default legend representation type in chart web control.

this.ChartWebControl1.Legend.ItemsSize = new Size(30, 30);

this.ChartWebControl1.Legend.RepresentationType = ChartLegendRepresentationType.Hexagon;

Please take alook at the attached sample.

http://websamples.syncfusion.com/samples/Chart.Web/5.1.0.51/F61420/main.htm

Let me know if this helps.

Regards,
Rashidha.

Loader.
Live Chat Icon For mobile
Up arrow icon