Plotting a Line Graph

View: New views
7 Messages — Rating Filter:   Alert me  

Plotting a Line Graph

by coolcat :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

(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@...






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


Re: Plotting a Line Graph

by Ashley Sheridan-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, 2009-10-16 at 10:32 -0700, cool@... 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@...
>
>
>
>
>
>


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



Re: Plotting a Line Graph

by Jim Lucas-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

cool@... 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@...
>
>
>
>
>
>

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

by coolcat :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

by James Ausmus-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

jpgraph:

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

On Fri, Oct 16, 2009 at 10:32 AM,  <cool@...> 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@...
>
>
>
>
>
>
> --
> 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

by Jim Lucas-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

cool@... 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_20091010/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

by coolcat :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Oct 16, 2009, at 11:45 AM, cool@... 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@...






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