Graphics in asp.net

  • Thread starter Thread starter Bart Schelkens
  • Start date Start date
B

Bart Schelkens

Hi,

I've created a website that stores some data in a log-table (like which
ip-adres, which browser,...).
Now my boss wants to view this data in a chart.
How can I do this in asp.net ?

Thanks in advance.
 
Hi Bart,

Certain types of statistical data do well in charts. IP addresses would not,
but, for example, browser manufacturer and version would (anything which you
can do a roll-up of). Assuming that you have a database from which you can
select data, you should be able to execute queries that contain "rolled up"
information in them.

Pttting these into a chart can be a relatively simple process, or it can be
more sophisticated. The simplest way is to use HTML elements such as divs
for your bars, putting them into an HTML table, and setting the height/width
according to the statistics. You could probably create a reusable control
that displays statistical data in a bar chart like this fairly easily.

The more difficult but more flexible method is to use these statistics to
create images, such as a bar chart, pie chart, or what-have-you. In this
case you would need an ASPX page that serves as your "image." The Page would
create a drawing from the data, set the Response.ContentType to "image/jpg"
(whatever the right MIME type), and save the image to the
Response.OutputStream. The page would be referenced in an image tag in
another page.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.
 
Use a pre-built charting engine such as The Microsoft Office Web Components.
Its free and very easy to draw charts - pass in the x values, y values set
the type (pie chart etc) and you're done.

Or you can buy any of the multitude such as Dundas charts or .netCharting to
name a few.

--
Regards,
Alvin Bruney
[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
available at www.lulu.com/owc
_________________________
 
Back
Top