Plotting a Line Graph

Plotting a Line Graph

am 16.10.2009 19:32:09 von cool

(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






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

Re: Plotting a Line Graph

am 16.10.2009 19:34:24 von Ashley Sheridan

--=-WEkJP2wJE1JtZ93UTLvt
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

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



--=-WEkJP2wJE1JtZ93UTLvt--

Re: Plotting a Line Graph

am 16.10.2009 20:06:25 von List Manager

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

I would recommend http://www.rgraph.net/

It was written and is currently maintained by a member of this list.

Jim Lucas

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

Re: Plotting a Line Graph

am 16.10.2009 20:45:43 von cool

Jim Lucas wrote:

>
> I would recommend http://www.rgraph.net/
>
> It was written and is currently maintained by a member of this list.
>
> Jim Lucas
>

Hi Jim,

rgraph looks cool... most demos I see show just a few points - do you
think this could display 500 points? (I'm looking through their docs now...)

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

Re: Plotting a Line Graph

am 16.10.2009 22:43:21 von James Ausmus

jpgraph:

http://www.aditus.nu/jpgraph/

On Fri, Oct 16, 2009 at 10:32 AM, 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
>
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

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

Re: Plotting a Line Graph

am 16.10.2009 23:53:27 von List Manager

cool@hosting4days.com wrote:
> Jim Lucas wrote:
>
>>
>> I would recommend http://www.rgraph.net/
>>
>> It was written and is currently maintained by a member of this list.
>>
>> Jim Lucas
>>
>
> Hi Jim,
>
> rgraph looks cool... most demos I see show just a few points - do you
> think this could display 500 points? (I'm looking through their docs
> now...)
>

Here is a demo that has 2000 different points.

http://www.cmsws.com/examples/applications/rgraph/RGraph_200 91010/max_line_chart.html

I stripped his demo and altered the number points entered in the demo line
chart. Seems to work just fine.

Jim Lucas

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

Re: Plotting a Line Graph

am 05.11.2009 17:20:52 von cool

On Oct 16, 2009, at 11:45 AM, cool@hosting4days.com wrote:

> Jim Lucas wrote:
>
>> I would recommend http://www.rgraph.net/
>> It was written and is currently maintained by a member of this list.
>> Jim Lucas
>
> Hi Jim,
>
> rgraph looks cool... most demos I see show just a few points - do
> you think this could display 500 points? (I'm looking through their
> docs now...)
>

I als see this :

http://pear.php.net/package/Image_Graph

Q: has anyone had success using this?

Also - it says "this package is not maintained" - is that a scary thing?

Are there any other ways for php to create a simple live line graph
from 500 points?

Thanks,
cool@hosting4days.com






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