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

pie chart and legend

i am having trouble with the pie chart and legend. i have a series from a data table, but the legend doesn''t show the pie slices, just the series name (if supplied).
There also seems to be a lot of white space around the image, even when I set auto scale.
Do I have to have multiple series for each slice?

StatusChart.zip

1 Reply

AD Administrator Syncfusion Team August 4, 2006 08:29 PM UTC

Hi Shane,

Thanks for choosing Syncfusion Products.

You have to show the pie chart legend using following code snippet.

this.chartControl1.ShowLegend=true;
or
this.chartControl1.Legend.Visible=true;

Please take a look at the attached sample.
http://www.syncfusion.com/Support/user/uploads/pieChart_72111355.zip

Let me know if you need any further information.

Thanks,
Ramesh.

Loader.
Live Chat Icon For mobile
Up arrow icon