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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple graphical data presentation in HTML

Status
Not open for further replies.

Vadim

Programmer
Feb 5, 2002
75
US
How to make some numeric data presented as rectangular graphs on HTML?
 
I would do it by creating a table then give each reoccurance of the item 2% or 3% space across the page so If your results were like this:

Results:
First Item - 35
Second Item - 20
Third Item - 30

You may have something like..

<table width='100%'>

<tr><td width=&quot;15%&quot;>First Item</td><td width=&quot;70%&quot; bgcolor='red'>&nbsp</td><td><&nbsp;</td></tr>

<tr><td width=&quot;15%&quot;>Second Item</td><td width=&quot;40%&quot; bgcolor='blue'>&nbsp</td><td><&nbsp;</td></tr>

<tr><td width=&quot;15%&quot;>Third Item</td><td width=&quot;60%&quot; bgcolor='yellow'>&nbsp</td><td><&nbsp;</td></tr>

</table>

If your largest items reoccurance is over 100 then you'll have to say maybe 2 reoccurances to 1%

Does that make any sense ?

Russell
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top