Click here to Skip to main content
16,010,523 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all

I have a chart with 5 serieslists and now I want to show 3 of 5 serieslists of this chart into its legend, but i can not. I can only show all.

if you have any solution which can resolve this problem, please help me

thank you very much!
Posted

1 solution

you can remove the unwanted legends from the chart using this:

C#
Chart1.Legends.RemoveAt(<<Index Position of Legend>>);
 
Share this answer
 

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