Re: Re: Creating graphs with PHP?
| From: | Alberto Brea | Date: | Thu, 20 Mar 2003 15:17:29 +0000 |
| Subject: | Re: Re: Creating graphs with PHP? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-140440@lists.php.net to get a copy of this message | ||
If all you need is a simple bar graph, you can:
1. make a 1-pixel gif
2. make a table with fixed-width <td>s on the same row (e.g. width 10 pixels)
3. in each <td> you put one gif with <img src=xx width=10 height=xxx> wherein the height
is queried from your data source.
4. on the row below you put the day, month or whatever corresponding to the relevant gif
You can make it horizontal too.
If you want a line graph, you make a second transparent gif, make this the variable-height image,
and put the visible gif at the top, so you make the line.
Hope this helps
Alberto Brea
http://estudiobrea.com