# Graph Maker 1.3

My problem was: I wanted to generate simple graphs (in x the days and in y the data) to use in html documents (gif format). Why did I have to use gnuplot and then to convert the output format in gif? So I try to make a simple script PERL that use GD.pm library to generate gif.

Here some exemples made with Graph Maker 1.3

Here the source of Graph Maker 1.3 (tar gzip)

### Usage

    graphmaker [-options ...]

    where options include:
        -help                        print out this message
        -conf  file                  the configuration file (default graphmaker.cnf)

If you want to change the default parameters you have to edit graphmaker.cnf (default) or you can to use other configuration file using the option [-conf string]

These are the parameters that you can change in graphmaker.cnf

    #
    # Configure the value of the variables
    #
    # It's better if $MAXVALUE -$MINVALUE is a $NUMBERYCELLGRIDESIZE divisible
    # number
    NUMBERYCELLGRIDSIZE: 8
    MAXYVALUE: 7748
    MINYVALUE: 6500
    XCELLGRIDSIZE: 18
    # both 96 or 1996 are correct
    # Remember 0 is January, 1 February ...
    YEAR: 96
    MONTH: 8
    #($MONTH,$YEAR) = (localtime(time))[4,5];
    # input file in the form
    # day:number
    Data: ./graphmaker.dat
    # output gif
    Graph: ./graphmaker.gif
    # $Bar: 1 Bar Diagram
    Bar: 1
    # $Average: 1 for Average Line
    Average: 1
    Title: ENI: Milan Stock Exchange
    #$Title: Graph Maker 1.3
    # Default is "$Title ($month)"
    #
    # Default line or bar colour
    Rcolour: 0
    Gcolour: 0
    Bcolour: 255
    # Average colour
    Racolour: 255
    Gacolour: 255
    Bacolour: 0

Send me your observations, patches, ... Fabrizio Pivari