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

Recommended Answers

All 6 Replies


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.

You can draw this using a simple System.Drawing.Graphics bitmap canvas. Use mathematics to calculate the layout of the the charts.

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?


Sorry you have to search this.

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


Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.