Re: PHP Graphing Libraries...?
| From: | lists@mgreg.com | Date: | Fri, 05 Jun 2009 12:33:05 +0000 |
| Subject: | Re: PHP Graphing Libraries...? | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-293658@lists.php.net to get a copy of this message | ||
On Jun 5, 2009, at 5:26 AM, Richard Heyes wrote:
I've looked at the docs and I don't see how exactly it handles "x,y" plotting. I need the ability to plot multiple lines (which it obviously does) with wildly varying "x,y" values. It seems that all of these libraries "cheat" and force common "x" values via the labels. I need something like the following (all in the same chart): $line_one_data = [x,y,x,y,x,y,x,y,x,y,x,y,x,y,x,y,x,y,x,y,x,y,x,y] $line_two_data = [x,y,x,y,x,y,x,y] $line_three_data = [x,y,x,y,x,y,x,y,x,y,x,y,x,y] $graph->plot($line_one_data,$line_two_data,$line_three_data) As I said, each "line" has its own set of "x,y", and although they're all obviously numbers, they don't all have "y" results at the same "x intervals" so I need to be able to control them independently. Surely there's something that can accommodate this...? Best, Michael...I would have to suggest RGraph... ( http://www.rgraph.net ) :-) It's uses canvas though, so browser support is limited at the moment though to Firefox 3.5, Safari 4 and Chrome 2.