Re: PHP Graphing Libraries...?
| From: | Michael A. Peters | Date: | Fri, 05 Jun 2009 13:41:52 +0000 |
| Subject: | Re: PHP Graphing Libraries...? | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-293665@lists.php.net to get a copy of this message | ||
lists@mgreg.com wrote:
On Jun 5, 2009, at 5:26 AM, Richard Heyes wrote:Sure - the gd library. Scale the x/y position according to your needs.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):...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.$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...?