Click here to Skip to main content
15,892,746 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
I am working on (asp.net c# web application.frame work 4.5)

would any one tell me how to creat a pie chart or a bar chart????

I need one of these, plz tell me about any one....
Posted
Updated 13-Aug-12 8:13am
v2
Comments
Sergey Alexandrovich Kryukov 13-Aug-12 14:12pm    
If you develop with v.4.5, you should have MSDN help on it. Why not just reading it? Charting is included in the Framework's libraries...
--SA
Sergey Alexandrovich Kryukov 13-Aug-12 14:13pm    
Added appropriate tags to the question...
--SA

1 solution

With .NET 4.5, you can use System.Web.UI.DataVisualization.Charting and the class System.Web.UI.DataVisualization.Charting.Chart and derived classes. Please see:
http://msdn.microsoft.com/en-us/library/system.web.ui.datavisualization.charting%28v=vs.110%29.aspx[^],
http://msdn.microsoft.com/en-us/library/system.web.ui.datavisualization.charting.chart%28v=vs.110%29.aspx[^].

This a simple Pie chart code sample:
http://betterdashboards.wordpress.com/tag/pie-charts/[^].

—SA
 
Share this answer
 
Comments
[no name] 13-Aug-12 15:40pm    
thanx your solution was the best!!!!

could you tell me how to chang the color of a pie chart.
i mean how to assign different colors instead of the default colors ????????
[no name] 13-Aug-12 15:49pm    
I have done it myself...

thanx
Sergey Alexandrovich Kryukov 13-Aug-12 16:06pm    
I was sure you would do it.
You are welcome.
Good luck, call again.
--SA

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