How can I make a graph (like the powerchart) with HTML?

I'm not sure of anyway to do it. However I do know something you can try.

Open Microsoft Excel, and create a histrogram (the line graph you are referring to.) Go to 'file' then click on 'save as' and then save it as an HTML file. Or click "Save As Webpage" and you will get a better output.

Although the code will be extremely messy and jumbled, it should give you the output you're looking for.


If you don't want to do any of that, then I suggest you just make the histogram in Excel or Photoshop or whatever, and then save it as a jpeg file and paste it into your HTML file. Can't go wrong with that.
 
Html won't let you make standing bars.
But it's both easy and tidy to make rows.

Make one (or more) 1x1 size coloured picture. Green.gif, red.gif. Whatever.
Make a 1x1 white (or best: transparent) picture. Call it blank.gif.

Add code to page.
<img src = "red.gif" alt = "So long" width = 76 height = 4><br>
<img src = "blank.gif" alt = "blank" width = 1 height = 4><br>
<img src = "red.gif" alt = "So short" width = 16 height = 4><br>

Get the gist?
The nice part is that you can insta-create the width (or the whole code chunk) in a cgi. Making on-the fly graphic statistics.

C.
 
Back
Top Bottom