如何在传奇上展示一些系列 [英] How to show some of the series on legend
本文介绍了如何在传奇上展示一些系列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用以下代码在图表上显示图例
pltOutput.Legends.Add( new Legend(Constants.LEGEND));
pltOutput.Legends [Constants.LEGEND] .Alignment = StringAlignment.Center;
pltOutput.Leg结束[Constants.LEGEND] .IsDockedInsideChartArea = false ;
pltOutput.Legends [Constants.LEGEND] .Docking = Docking.Top;
pltOutput.Legends [Constants.LEGEND] .LegendItemOrder = LegendItemOrder.ReversedSeriesOrder;
pltOutput.Legends [Constants.LEGEND] .LegendStyle = LegendStyle.Row;
我需要在图例中显示3个系列但是所有6个在图表?
你能告诉我一些关于这个的事吗
谢谢
John
解决方案
传说是传奇物品的集合,所以你可以删除你不想要的物品。
chart.Legends.Remove(化LegendItem);
Hi,
I am using the following code to display the legend on chart
pltOutput.Legends.Add(new Legend(Constants.LEGEND));
pltOutput.Legends[Constants.LEGEND].Alignment = StringAlignment.Center;
pltOutput.Leg ends[Constants.LEGEND].IsDockedInsideChartArea = false;
pltOutput.Legends[Constants.LEGEND].Docking = Docking.Top;
pltOutput.Legends[Constants.LEGEND].LegendItemOrder = LegendItemOrder.ReversedSeriesOrder;
pltOutput.Legends[Constants.LEGEND].LegendStyle = LegendStyle.Row;
I need to show 3 of the series in the legend but all 6 in the chart?
Can you please suggest me something about this
Thanks
John
解决方案
Legends is a collection of Legend items so you can just remove the one(s) you don't want.
chart.Legends.Remove(legendItem);
这篇关于如何在传奇上展示一些系列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文