x,y axis graph

x,y axis graph

am 16.02.2011 03:35:03 von Chris Stinemetz

--_000_D225040F2D0F75448937B83D9527991A015458A33Ddenex1crick et_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

I am interested in creating a cgi perl script that I can publish on the web=
that will tie into a mysql database and create a x,y axis graph based on d=
ata selection. Any suggestions are greatly appreciated.

Thank you,
Chris Stinemetz


--_000_D225040F2D0F75448937B83D9527991A015458A33Ddenex1crick et_--

Re: x,y axis graph

am 16.02.2011 04:22:12 von Brian Fraser

--20cf3043451070f790049c5dc982
Content-Type: text/plain; charset=ISO-8859-1

On Tue, Feb 15, 2011 at 11:35 PM, Chris Stinemetz <
cstinemetz@cricketcommunications.com> wrote:

> I am interested in creating a cgi perl script that I can publish on the web

Cool.

Any suggestions are greatly appreciated.
>
I think that maybe learning some Perl would be a solid first step.

Brian.

I shouldn't, but take a look at
http://suryahunter.com/wiki/hunter/Charts/Weather/Temperatur e_Forecast for
an example of creating a chart using Perl. DBI or DBIx::Class should make do
for the database layer. You'll probably not want to use a cgi script, as
that is so twelve years ago.

--20cf3043451070f790049c5dc982--

Re: x,y axis graph

am 16.02.2011 05:21:50 von Shawn Wilson

--001636832f7cbd464c049c5e9e69
Content-Type: text/plain; charset=ISO-8859-1

On Feb 15, 2011 9:36 PM, "Chris Stinemetz" <
cstinemetz@cricketcommunications.com> wrote:
>
> I am interested in creating a cgi perl script that I can publish on the
web that will tie into a mysql database and create a x,y axis graph based on
data selection. Any suggestions are greatly appreciated.
>
I'm not in front of a computer right now. However, IIRC there are Math:: and
Graph:: modules. I'd also look at the ImageMagick modules if you need a
picture from that point. Maybe search cpan for 'plot' as well.

You could probably figure out how to do plots in straight css, but idk. And
it wouldn't be the easiest to do.

--001636832f7cbd464c049c5e9e69--

Re: x,y axis graph

am 16.02.2011 07:43:20 von Jim Gibson

At 7:35 PM -0700 2/15/11, Chris Stinemetz wrote:
>I am interested in creating a cgi perl script that I can publish on
>the web that will tie into a mysql database and create a x,y axis
>graph based on data selection. Any suggestions are greatly
>appreciated.

One method is to use gnuplot. Write out your x,y data to a file, fork
gnuplot, and send it commands to plot the data and save as a PNG
file. Then, return an HTML page that displays the PNG file as an
image.

There are CPAN modules to help you control gnuplot. However, it is
easy enough to send it commands using a pipe (see perldoc -f open).
It is even easier to write out the gnuplot commands to another file
and tell it to execute those commands.

--
Jim Gibson
Jim@Gibson.org

--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/

Re: x,y axis graph

am 16.02.2011 13:42:09 von Peter Scott

On Tue, 15 Feb 2011 19:35:03 -0700, Chris Stinemetz wrote:
> I am interested in creating a cgi perl script that I can publish on the
> web that will tie into a mysql database and create a x,y axis graph
> based on data selection. Any suggestions are greatly appreciated.

Suggestion:

http://search.cpan.org/~dmaki/Google-Chart-0.05014/lib/Googl e/Chart.pm

--
Peter Scott
http://www.perlmedic.com/ http://www.perldebugged.com/
http://www.informit.com/store/product.aspx?isbn=0137001274
http://www.oreillyschool.com/courses/perl3/

--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/

Re: x,y axis graph

am 16.02.2011 21:27:55 von Scott Hall

--0016362844aab6f400049c6c1d08
Content-Type: text/plain; charset=ISO-8859-1

On Tue, Feb 15, 2011 at 9:35 PM, Chris Stinemetz <
cstinemetz@cricketcommunications.com> wrote:

> I am interested in creating a cgi perl script that I can publish on the web
> that will tie into a mysql database and create a x,y axis graph based on
> data selection. Any suggestions are greatly appreciated.
>
> Thank you,
> Chris Stinemetz
>
>
I use GD::Graph with cgi to create graphs on the fly.

There are some examples on http://gdgraph.com/

Regards,

Scott

--0016362844aab6f400049c6c1d08--