Re: generating graphs
| From: | Knightking | Date: | Sat, 05 Jun 2004 22:53:45 +0000 |
| Subject: | Re: generating graphs | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-187714@lists.php.net to get a copy of this message | ||
On Sat, 5 Jun 2004 19:31:34 +0530, Nitin <nitinmehta@kappa.net.in> wrote:
thanks for the help, but my PHP ver is 4.0.6... Any other suggestions??<?php $values = array(50, 80, 23, 74); $total = 227; echo '<div style="width:100px">' foreach($values as $v) echo '<div style="width:' . $v / $total * 100 . 'px; background-color : red"></div>'; echo '</div>