Re: PHP Graphing Libraries...?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

> 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...?

Well the line doesn't do this, the X values are linear. However the
Scatter works like this. ie You set an maximum X value and the X
values are put in the corresponding places.

-- 
Richard Heyes
HTML5 graphing: RGraph (www.rgraph.net - updated 23rd May)
PHP mail: RMail (www.phpguru.org/rmail)
PHP datagrid: RGrid (www.phpguru.org/rgrid)
PHP Template: RTemplate (www.phpguru.org/rtemplate)
PHP SMTP: http://www.phpguru.org/smtp

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux