Image over an Image

# Thread: Image over an Image

1. sharon Guest

## Image over an Image

I&#039;m trying to generate a stacked bar graph through ASP. I&#039;m able to achieve the bars but I am not able to put them one over the other. My code is something like this<BR><BR>&#060;TD vAlign=Bottom&#062;&#060;IMG SRC=&#039;images/" & colorArray(colorCtr) & "&#039; Height=" & (tot(ctr)/biggestBarHeight)*barHeightPixels & " Width=20&#062;<BR><BR>How can I put two images one over the other. Thanks

2. Senior Member
Join Date
Dec 1969
Posts
19,082

## RE: Image over an Image

define &#039;one over the other&#039; I don&#039;t see your objective here.<BR><BR>j

3. sharon Guest

## RE: Image over an Image

here is my code<BR><BR>sTable = "&#060;TABLE BORDER=1&#062;&#060;TR&#062;&#060;TD&#062;" & biggestBarHeight & "&#060;/TD&#062;&#060;TD&#062;"<BR><BR>currentCriticality = ""<BR>For ctr = LBound(criticality) to UBound(criticality)<BR> If currentCriticality = criticality(ctr) Then<BR> colorCtr = colorCtr + 1<BR> sTable = sTable & "&#060;IMG SRC=&#039;images/" & colorArray(colorCtr) & "&#039; Height=" & (tot(ctr)/biggestBarHeight)*barHeightPixels & " Width=20&#062;"<BR> Else<BR> colorCtr = 0<BR> sTable = sTable & "&#060;/TD&#062;&#060;TD&#062;&nbsp;&#060;/TD&#062;"<BR> currentCriticality = criticality(ctr)<BR> <BR> sTable = sTable & "&#060;TD vAlign=Bottom&#062;&#060;IMG SRC=&#039;images/" & colorArray(colorCtr) & "&#039; Height=" & (tot(ctr)/biggestBarHeight)*barHeightPixels & " Width=20&#062;"<BR> End If<BR>Next<BR><BR>sTable = sTable & "&#060;/TR&#062;&#060;TR&#062;&#060;TD&#062;0&#060;/TD&#062;&#060;/TR&#062;&#060;/TABLE&#062;"<BR><BR>Response.Write(sTable)<BR><BR> If you understand &#039;Stacked Bar Graph&#039;, I&#039;m trying to do something like that. So, depending on the number of times a particular item is occuring in the list I show it of certain height with the Height property of the IMG. But if another item occurs in the same category then actually I want to show it as a continuity of the same img in a different color on its top but not on it&#039;s side. I hope it&#039;s clear enough.

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•