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!

Create graphs without the GD Lib?

Status
Not open for further replies.

paulobrads

Programmer
Jul 13, 2006
28
GB
Does anyone know any products or open source ways of creating graphs (preferably line graphs) in PHP without using the GDlib?

Many thanks,
Paul
 
You can draw spans, or tables and have their heights or widths change depending on the values you want to show.
Give them solid backgrounds and they can look like graphs if done correctly.

----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
SVG might be an option, though I am not aware of there being anywhere near as many pre-built graphing solutions for it. And you have the ever-present IE issues.

 
A quick cheap'n'rough html way would be to make a small gif (in the example below, the sample gif named red.gif is 1x25 pixels) and then stretch it using the width attribute:

Code:
<img src="red.gif" height="25" width="10" /><br />
<img src="red.gif" height="25" width="500" /><br />

Will that be applicable?

Regards


Jakob
 
Thanks for all your help. I've decided against even using graphs in what I'm doing - long story, thanks anyway, this thread will be good for future reference.

Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top