Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用Microsoft Chart,并且顶部图例显示在饼图的顶部。哪个属性用于显示或隐藏饼图的图例?
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.