4

我正在使用Microsoft Chart,并且顶部图例显示在饼图的顶部。哪个属性用于显示或隐藏饼图的图例?

4

1 回答 1

12

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.

于 2011-06-02T09:52:34.197 回答