Reputation: 22076
I am using Microsoft Chart, and I have top Legend displayed at the top in a pie chart. Which property is used to show or hide the legend of a pie chart?
Upvotes: 4
Views: 12728
Reputation: 22076
Just do the following.
Legend leg = new Legend();
Chart1.Legends.Add(leg);// This will show all legends.
Actually you have to create a legend object, set its different or desired properties like font, etc., and then add it to the chart.
Upvotes: 11