Click here to Skip to main content
15,893,161 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am trying to plot 2 chart areas on a chart

I have 3 series on each chart areas.So total of 6 series

but the series are same with different names

I am using the following code to display the series on chart

C#
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;

But I want to display only 3 series of first chart area

Can anyone suggest me how this can be done


Thanks
John
Posted
Comments
ZurdoDev 3-Apr-14 20:50pm    
You're showing code for a Legend. Are you saying you only want to show 3 of the series in the legend but all 6 in the chart? Or, are you wanting to only show 3 in the chart?
Member 10408451 4-Apr-14 2:31am    
Hi, Thank you for your reply
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

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900