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

Hi Monks,

I'm using ActivePerl 5.8.++ and I'm wondering if there's a module I can use to draw graphs - line and bar charts.

I have read about GD-Graph and have gone to ppm to try and find it. There isn't a listing for GD-Graph - the closest match is GDGraph-Map.zip but I am not sure if that's the one.

I'm totally new to using perl for producing graphs. Any advice will be appreciated.

Thanks in advance :)

Replies are listed 'Best First'.
Re: GD-Graph for ActivePerl
by pg (Canon) on Jan 17, 2004 at 03:20 UTC

    It is not available from ppm, get it from CPAN GD::Graph. It directly supports bar chart and line chart.

      Thanks, pg!

      Is that the only module I need to have? Does it need other modules to support its use?

Re: GD-Graph for ActivePerl
by neuroball (Pilgrim) on Jan 17, 2004 at 04:22 UTC
      If I want to install them by hand, what are the files that I need? GD.pm and Graph.pm?

        GD has a binary component (GD.DLL), which means that to install it from CPAN, you will need a compiler--the same compiler as was used to build your copy of perl, which means MS VC++ if you are using ActiveState perl. If you don;t have access to a (correct) compiler, you will need to install it from a pre-compiled source.

        PPMs for GD and several other GD-* packages are available from here.

        Either set a PPM repository to point to the link above

        ppm>rep add kobes http://theoryx5.uwinnipeg.ca/ppms/

        and then install using PPM in the normal way, or download the PPM/PPD files from that link and use point PPM at them.

        supersearch turned up this Re: Re: How to install GD.pm? post.

        PodMaster's links (especially A Guide to Installing Modules from tachyon)will explain how to do this better than I can.


        Examine what is said, not who speaks.
        "Efficiency is intelligent laziness." -David Dunham
        "Think for yourself!" - Abigail
        Timing (and a little luck) are everything!