943,095 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 2456
  • ASP.NET RSS
Apr 5th, 2009
0

how to make a pie or bar chart in asp.net?

Expand Post »
Hi, i wondered if any1 knew how to create a simple bar or pie chart in asp.net. I would like to show how much space users have used e.g. 25/100mb represented graphically and showing percentages

Thanks for help
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
julseypart is offline Offline
42 posts
since Oct 2008
Apr 6th, 2009
0

Re: how to make a pie or bar chart in asp.net?

Hi,

There are many ways to achieve this:
1. You can use third party dlls to create charts, many are available in market, if you are lucky u will get something free.
2. You can use System.Drawing.Graphics in .net to create your own charts (I assume your requirement is very basic). Its should not take long.
3. You can use CSS, simple bar chart can be created purely using CSS, for pie chart you can use different images and show them based on calcuation. for example you can have 20 odd images(pie01.gif, pie02.gif...) and based on calculation set Style Image to relevant image. for 20% useabge set image = pie02.gif
Its the cheapest and fastest way to achieve this.

I think you must have got the idea.
Reputation Points: 10
Solved Threads: 5
Light Poster
P.K.Chaudhary is offline Offline
30 posts
since Mar 2009
Apr 6th, 2009
0

Re: how to make a pie or bar chart in asp.net?

Reputation Points: 25
Solved Threads: 29
Posting Whiz
greeny_1984 is offline Offline
372 posts
since Apr 2007
Apr 6th, 2009
0

Re: how to make a pie or bar chart in asp.net?

You can draw this using a simple System.Drawing.Graphics bitmap canvas. Use mathematics to calculate the layout of the the charts.
Last edited by Narue; Apr 6th, 2009 at 11:32 am. Reason: snipped spam
Reputation Points: 10
Solved Threads: 0
Newbie Poster
consultsarath is offline Offline
1 posts
since Apr 2009
Apr 8th, 2009
0

Re: how to make a pie or bar chart in asp.net?

thanks, i might just use the css method as im not great at mathematics! Do you know where i could get 20 pie images - one for 5%, 10% ..etc or should i make my own as they would have to be similar?
Last edited by julseypart; Apr 8th, 2009 at 7:02 am.
Reputation Points: 10
Solved Threads: 0
Light Poster
julseypart is offline Offline
42 posts
since Oct 2008
Apr 8th, 2009
0

Re: how to make a pie or bar chart in asp.net?

Hi,

Sorry you have to search this.
Reputation Points: 10
Solved Threads: 5
Light Poster
P.K.Chaudhary is offline Offline
30 posts
since Mar 2009
Apr 10th, 2009
0

Re: how to make a pie or bar chart in asp.net?

HI,
The best way is to generate a bar/pie animated chart is fusion chart. Its completely free & easy to use as well as niceeee.

First download the documents from
http://www.fusioncharts.com/Download.asp

READ DOCUMENT CAREFULLY. TOO EASY.
Reputation Points: 26
Solved Threads: 44
Posting Whiz in Training
mail2saion is offline Offline
247 posts
since Apr 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: Radiobuttons within Gridview
Next Thread in ASP.NET Forum Timeline: Transfer Info To Next Form C#





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC