Angharad has asked for the wisdom of the Perl Monks concerning the following question:

Hi there
A general question ... I'm looking to create a script that will, given a two column data input, produce a graphical chart ... but as a browser 'pop-up' output.
I was wondering as to what people thought the best direction to take would be on this and if anyone knows of any handy packages that might be quite useful.
Thanks

Replies are listed 'Best First'.
Re: graphics in broswer window
by davidrw (Prior) on May 23, 2005 at 13:28 UTC
    Making a browser 'pop-up' is purely a html question -- you'll probably want something like one of these:
    <form ... target="_blank"> or <a href="..." target="_blank"> or something (button, link, etc that invokes a javascript function: <script language="javascript"> function makeWin { // you can set the dimensions,etc of the window using this. var win = window.open( ... ); } </script>

    As for creating graphs in perl, GD::Graph is probably one of the most popular packages for that.

    For CGI in general, start in the "Network/CGI Programming" section of the Tutorials.
Re: graphics in broswer window
by ghenry (Vicar) on May 23, 2005 at 13:51 UTC

    Here's one of my previous nodes which you can look at to see an example of GD::Graph:

    GD::Graph::linespoints - Various questions

    The main docs have loads of examples though.

    HTH.

    Walking the road to enlightenment... I found a penguin and a camel on the way.....
    Fancy a yourname@perl.me.uk? Just ask!!!
Re: graphics in broswer window
by Angharad (Pilgrim) on May 23, 2005 at 13:49 UTC
    Thanks a lot