# phpman > man > GD::Graph3d(3pm)

## NAME
    [GD::Graph3D](https://www.chedong.com/phpMan.php/perldoc/GD%3A%3AGraph3D/markdown) - Create 3D Graphs with GD and [GD::Graph](https://www.chedong.com/phpMan.php/perldoc/GD%3A%3AGraph/markdown)

## SYNOPSIS
            use [GD::Graph::moduleName](https://www.chedong.com/phpMan.php/perldoc/GD%3A%3AGraph%3A%3AmoduleName/markdown);
            my @data = (
               ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
               [ 1203,  3500,  3973,  2859,  3012,  3423,  1230]
            );
            my $graph = new [GD::Graph::moduleName](https://www.chedong.com/phpMan.php/perldoc/GD%3A%3AGraph%3A%3AmoduleName/markdown)( 400, 300 );
            $graph->set(
                    x_label           => 'Day of the week',
                    y_label           => 'Number of hits',
                    title             => 'Daily Summary of Web Site',
            );
            my $gd = $graph->plot( \@data );

    Where *moduleName* is one of "bars3d", "lines3d" or "pie3d".

## DESCRIPTION
    This is the [GD::Graph3d](https://www.chedong.com/phpMan.php/perldoc/GD%3A%3AGraph3d/markdown) extensions module. It provides 3D graphs for the [GD::Graph](https://www.chedong.com/phpMan.php/perldoc/GD%3A%3AGraph/markdown) module by
    Martien Verbruggen, which in turn generates graph using Lincoln Stein's GD.pm.

    You use these modules just as you would any of the [GD::Graph](https://www.chedong.com/phpMan.php/perldoc/GD%3A%3AGraph/markdown) modules, except that they generate
    3d-looking graphs. Each graph type is described below with only the options that are unique to
    the 3d version. The modules are based on their 2d versions (e.g. [GD::Graph::bars3d](https://www.chedong.com/phpMan.php/perldoc/GD%3A%3AGraph%3A%3Abars3d/markdown) works like
    [GD::Graph::bars](https://www.chedong.com/phpMan.php/perldoc/GD%3A%3AGraph%3A%3Abars/markdown)), and support all the options in those. Make sure to read the documentation on
    [GD::Graph](https://www.chedong.com/phpMan.php/perldoc/GD%3A%3AGraph/markdown).

    [GD::Graph::pie3d](https://www.chedong.com/phpMan.php/perldoc/GD%3A%3AGraph%3A%3Apie3d/markdown)
        This is merely a wrapper around [GD::Graph::pie](https://www.chedong.com/phpMan.php/perldoc/GD%3A%3AGraph%3A%3Apie/markdown) for consistency. It also sets 3d pie mode by
        default (which [GD::Graph](https://www.chedong.com/phpMan.php/perldoc/GD%3A%3AGraph/markdown) does as of version 1.22). All options are exactly as in
        [GD::Graph::pie](https://www.chedong.com/phpMan.php/perldoc/GD%3A%3AGraph%3A%3Apie/markdown).

    [GD::Graph::bars3d](https://www.chedong.com/phpMan.php/perldoc/GD%3A%3AGraph%3A%3Abars3d/markdown)
        This works like [GD::Graph::bars](https://www.chedong.com/phpMan.php/perldoc/GD%3A%3AGraph%3A%3Abars/markdown), but draws 3d bars. The following settings are new or
        changed in [GD::Graph::bars3d](https://www.chedong.com/phpMan.php/perldoc/GD%3A%3AGraph%3A%3Abars3d/markdown).

        bar_depth
            Sets the z-direction depth of the bars. This defaults to 10. If you have a large number
            of bars or a small chart width, you may want to change this. A visually good value for
            this is approximately width_of_chart / number_of_bars.

        overwrite
            In [GD::Graph::bars](https://www.chedong.com/phpMan.php/perldoc/GD%3A%3AGraph%3A%3Abars/markdown), multiple series of bars are normally drawn side-by-side. You can set
            overwrite to 1 to tell it to draw each series behind the previous one. By setting
            overwrite to 2 you can have them drawn on top of each other, that is the series are
            stacked.

        shading
            By default this is set to '1' and will shade and highlight the bars (and axes). The
            light source is at top-left-center which scan well for most computer users. You can
            disable the shading of bars and axes by specifying a false value for this option.

    [GD::Graph::lines3d](https://www.chedong.com/phpMan.php/perldoc/GD%3A%3AGraph%3A%3Alines3d/markdown)
        This works like [GD::Graph::lines](https://www.chedong.com/phpMan.php/perldoc/GD%3A%3AGraph%3A%3Alines/markdown), but draws 3d line. The following settings are new or
        changed in [GD::Graph::line3d](https://www.chedong.com/phpMan.php/perldoc/GD%3A%3AGraph%3A%3Aline3d/markdown).

        line_depth
            Sets the z-direction depth of the lines. This defaults to 10. If you have a large number
            of bars or a small chart width, you may want to change this. A visually good value for
            this is approximately width_of_chart / number_of_bars.

        shading
            By default this is set to '1' and will shade and highlight the line (and axes). The
            light source is at top-left-center which scan well for most computer users. You can
            disable the shading of lines and axes by specifiying a false value for this option.

## VERSION
    0.63 (6 December 2002)

## INSTALLATION
    You will need to have the [GD::Graph](https://www.chedong.com/phpMan.php/perldoc/GD%3A%3AGraph/markdown) version 1.30 or later installed. You should also have Perl
    version 5.005 or 5.6 installed.

    To install, just do the normal:

            perl Makefile.PL
            make
            make install

    The documentation is in [GD::Graph::Graph3d](https://www.chedong.com/phpMan.php/perldoc/GD%3A%3AGraph%3A%3AGraph3d/markdown).pod.

## AUTHOR
    Jeremy Wadsack for Wadsack-Allen Digital Group. <dgsupport at wadsack-allen dot com>

    Most of the modules are based on the [GD::Graph](https://www.chedong.com/phpMan.php/perldoc/GD%3A%3AGraph/markdown) modules by Martien Verbruggen.

## LATEST RELEASE
    The latest release is available from CPAN: <http://www.cpan.org/>.

## COPYRIGHT
    Copyright (c) 1999-2001 Wadsack-Allen. All rights reserved.

    Much of the original code is from [GD::Graph](https://www.chedong.com/phpMan.php/perldoc/GD%3A%3AGraph/markdown):

    GIFgraph: Copyright (c) 1995-1999 Martien Verbruggen.

    [Chart::PNGgraph](https://www.chedong.com/phpMan.php/perldoc/Chart%3A%3APNGgraph/markdown): Copyright (c) 1999 Steve Bonds.

    [GD::Graph](https://www.chedong.com/phpMan.php/perldoc/GD%3A%3AGraph/markdown): Copyright (c) 1999 Martien Verbruggen.

    This package is free software; you can redistribute it and/or modify it under the same terms as
    Perl itself.

