Click here to Skip to main content
15,916,371 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi,
I am totally new to the graphical representation of the data. I want to make a progress report of students, based on marks achieved each year.
For example, in year 2005 marks were 750. in 2006 780 in 2007 800

I want to show it graphically. Could any body give me code example?

Thanks a lot.
Posted

You may use the Chart Controls (see Chart Controls[^] at MSDN, see also New Microsoft Chart Controls for Web and Windows Forms Applications[^] at CodeProject).
 
Share this answer
 
v2
Comments
Wendelius 3-Jan-12 11:42am    
Very useful links, 5.
Also along with the implementation, consider what you want the user to see and/or what you want to emphasis. There are lots of different diagram types. For example a simple line graph may be useful to show overall progress but also a bar graph could be an option if the marks are gotten once per year. A stacked bar could be informative if the marks need to be separated into categories and so on.
 
Share this answer
 
Comments
Furqan Sehgal 3-Jan-12 11:48am    
Even a line graph is ok, but how to make it? Any code examples?
How to put values stored in my variables to graph?
Wendelius 3-Jan-12 11:54am    
Did you have a look at links CPallini posted. For example from the first link the tutorial is very good: Tutorial: Creating a Basic Chart (Chart Controls)[^]a>].

Don't know if these still work, but you can give it a try: Samples Environment for Microsoft Chart Controls[^]
You should definitely have a look at this article: A flexible charting library for .NET[^]. It was written by the author of the famous ZedGraph library, JChampion[^].

The library can be found here: http://sourceforge.net/projects/zedgraph/[^].

Regards,

Manfred
 
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