473,383 Members | 1,872 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Graphics in asp.net

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.
Nov 19 '05 #1
4 948
Yes you can. You'd need to implement a HttpHandler that served up your JPG
(or whatever other format) data as a pie chart. Here's a MSDN article that
talks about it:

http://msdn.microsoft.com/msdnmag/is...w/default.aspx

-Brock
DevelopMentor
http://staff.develop.com/ballen
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.


Nov 19 '05 #2
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.

"Bart Schelkens" <bs********@hotmail.com> wrote in message
news:O4**************@TK2MSFTNGP15.phx.gbl...
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.

Nov 19 '05 #3
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
_________________________
"Bart Schelkens" <bs********@hotmail.com> wrote in message
news:O4**************@TK2MSFTNGP15.phx.gbl...
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.

Nov 19 '05 #4
There are many great ways to create web charts.

Here are some options to get you started:
http://steveorr.net/articles/BarGraphs.aspx
http://msdn.microsoft.com/msdnmag/is...w/default.aspx

Here's an extensive list of 3rd party charting & graphing controls.
I'm sure many of them would fit your needs.
http://www.asp.net/ControlGallery/de...y=1&tabindex=0

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Bart Schelkens" <bs********@hotmail.com> wrote in message
news:O4**************@TK2MSFTNGP15.phx.gbl...
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.

Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Sanjay | last post by:
hi, We are currently porting our project from VB6 to VB .NET. Earlier we used to make scale transformations on objects like pictureBox , forms etc.Now Such transformations are made on the...
5
by: Charles A. Lackman | last post by:
Hello, I have created a complete PrintDocument and need to create an image from it. How is this done? e.Graphics.SmoothingMode = Drawing2D.SmoothingMode.HighQuality...
11
by: Sanjay | last post by:
hi, We are currently porting our project from VB6 to VB .NET. Earlier we used to make scale transformations on objects like pictureBox , forms etc.Now Such transformations are made on the...
12
by: Sanjay | last post by:
hi, We are currently porting our project from VB6 to VB .NET. Earlier we used to make scale transformations on objects like pictureBox , forms etc.Now Such transformations are made on the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.