Re: PHP Graphing Libraries...?

From: Date: Sun, 07 Jun 2009 18:09:33 +0000
Subject: Re: PHP Graphing Libraries...?
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.general 
Request: Send a blank email to php-general+get-293711@lists.php.net to get a copy of this message
Hi, > Correct, but do you notice how although you're plotting multiple lines, they > all share X values? They all change direction nicely and neatly at the same > X value.  Mine don't do that.  I need to plot different X values for each > data set.  So if I'm logging values for time, I won't necessarily have the > same increment spacing for each data set.  I might have an X-coord at > 5,6,7,8 for one data set, but have another at 5.5,6.5,7.9,9.2 for another > data set.  Most of the existing APIs assume you're going to plot nice neat > X-coord values for each data set (e.g. 2005, 2006, 2007, 2008, 2009).  Mine > vary for each data set. > I believe Google Charts chart type "cht=lxy"does what I need.  Take a look > at that example and notice how the X values vary per data set, they're not > all synchronous. I'm still not sure I get it. What about a Scatter chart with the points connected? Would that be reasonable? With this you'd specify a max X value of say 365 to represent a year, and then plot the values based on that, ie: 67,57|234,80|57,89 ad infinitum. Then just connect the points. If there's a pattern, it would become apparent. -- Richard Heyes HTML5 graphing: RGraph (www.rgraph.net - updated 6th June) 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

« previous php.general (#293711) next »