user776676
user776676

Reputation: 4385

ASP.NET Chart: How to specify color for pie chart?

I have a pie chart and want to specify an exact color for a particular segment of the pie chart.

Which attribute do I use to specify the color dynamically? Thanks.

Upvotes: 1

Views: 4047

Answers (1)

Chris Kooken
Chris Kooken

Reputation: 33870

The color property hangs off the series object.

Chart.Series["xxx"].Color = Color.Red;

Upvotes: 1

Related Questions