[SOLVED] Hide labels in pie charts (MS Chart for .Net)

Issue

ugly pie chart

I can’t seem to find the property that controls visibility of labels in pie charts. I need to turn the labels off as the information is available in the legend.

Anyone know what property I can use in code behind?

I tried setting the series labels to nothing Chart1.Series[i].Label = string.Empty; but the labels seem to show up anyway.

Solution

Chart1.Series[i]["PieLabelStyle"] = "Disabled";

works too, and doesn’t need to be set for each datapoint.

Answered By – Ben

Answer Checked By – David Marino (BugsFixing Volunteer)

Leave a Reply

Your email address will not be published. Required fields are marked *