Re: Plotting a Line Graph
| From: | Ashley Sheridan | Date: | Fri, 16 Oct 2009 17:34:24 +0000 |
| Subject: | Re: Plotting a Line Graph | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-298947@lists.php.net to get a copy of this message | ||
On Fri, 2009-10-16 at 10:32 -0700, cool@hosting4days.com wrote:
> (sorry about the long Subject line typo - resending)
>
> I have a data file that stores about 500 numbers in a record - meant
> to plot a basic line graph (left to right). The numbers can be
> imported into a record with 500 fields or just stored in a text field
> - which ever is better.
>
> The user might want to pick a few random records and plot them
> together - so the line graph may compare the few records together.
>
> It seems that the google charts work from a url - so 500 points would
> be way to long for any url - so I guess that option is out.
>
> Q: what is the best way to create / display line graphs in with PHP?
>
> Thanks in advance for your help - dave
>
>
>
>
> Thanks,
> cool@hosting4days.com
>
>
>
>
>
>
There are some pre-built classes for plotting graphs, Pear Graph looks
good:
http://www.phpbuilder.com/columns/ian_gilfillan20060503.php3
and the screenshots look impressive if you Google it.
You could also roll your own, which wouldn't be too difficult
Thanks,
Ash
http://www.ashleysheridan.co.uk