Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTML Graphs

Status
Not open for further replies.

Mary10k

IS-IT--Management
Nov 8, 2001
103
US
Hello,

I need to post a few graphs on a web page and am having difficulty saving my graphs as an immage and loading these on my page. The image becomes distorted. Does anyone have advice as to how I may create a graph in HTML or ASP? I am a beginner.

Thanks.
 
The image is possibly only becoming distorted as it is being forced into a size different from the size it was created.

e.g. the image is 100pixels x 200pixels
and it's being forced into a size of 50pixels x 250pixels.

Can you create the graph image at the size it needs to be on the web page?

Post your code for the images here, we can see what bit is making it distort the image.

It is far simpler to do that than to create graphs "on the fly" with code.
(unless there is some simple ASP method.. I'm sketchy with ASP)

"I'm making time
 
Thank you. My code is listed below.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body><table border="0" cellpadding="0" colspan="3">
<tr>
<td align="center" colspan="3">Diabetes Dashboard</td>
</tr>

<td align="left"><a href="#"><img src="Z:\Gleason\test3.jpg" name="test3.jpg" width="250" height="150" border="0" style="background-color: #CCCC99">
<TD>
<td align="left"><a href="#"><img src="Z:\Gleason\test2.jpg" name="test2.jpg" width="220" height="150" border="0" style="background-color: #CCCC99"></tr>
</td>
<td>
<td align="left"><a href="#"><img src="Z:\Gleason\test2.jpg" name="test2.jpg" width="220" height="150" border="0" style="background-color: #CCCC99"></td>
</TABLE>
 
Well from your code I guess that the images are not created at the sizes specified in the image tags.

You could just remove the width and height attributes from the image tags, or better, change the values to match those of the images.

The ASP graphing component sounds handy though. It depends how comfortable you are with ASP. You will need to write ASP code to generate the graphs using the component.

"I'm making time
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top