GD::Graph3d(3pm)
β¨ NAME β¨
GD::Graph3D β bestie, it makes 3D graphs using GD and GD::Graph π
πΈ SYNOPSIS πΈ
use GD::Graph::moduleName;
my @data = (
["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
[ 1203, 3500, 3973, 2859, 3012, 3423, 1230]
);
my $graph = new GD::Graph::moduleName( 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 );
okay so where it says moduleName, you gotta swap in one of "bars3d", "lines3d" or "pie3d". that's the whole plug-and-play moment π«Ά
π¦ DESCRIPTION π¦
So this is the GD::Graph3d extensions module, and what it does is hand you 3D graphs for the GD::Graph module by Martien Verbruggen β which is itself generating graphs using Lincoln Stein's GD.pm. it's a whole ecosystem, we love a collab π
You use these modules literally just like any of the GD::Graph modules, except β plot twist β they make 3d-looking graphs instead. Every graph type gets its own little blurb below, but only for the options that are unique to the 3d version, so don't come for me about the missing ones. The modules are based on their 2d versions (like, GD::Graph::bars3d works like GD::Graph::bars), and they support all the options in those. So make sure you actually read the documentation on GD::Graph, bestie, it's not optional π
π GD::Graph::pie3d
ngl this one is merely a wrapper around GD::Graph::pie, for consistency's sake. It also sets 3d pie mode by default β which GD::Graph does anyway as of version 1.22, so it's giving β¨consistencyβ¨ more than chaos. All options are exactly as in GD::Graph::pie. no notes. π
π GD::Graph::bars3d
This works like GD::Graph::bars, but it draws 3d bars. The following settings are new or changed in GD::Graph::bars3d:
bar_depthβ sets the z-direction depth of the bars. Defaults to10. If you've got a large number of bars or a small chart width, you might wanna change this. A visually good value for this is approximatelywidth_of_chart / number_of_bars. math girlies rise π§overwriteβ inGD::Graph::bars, multiple series of bars are normally drawn side-by-side. You can setoverwriteto1to tell it to draw each series behind the previous one. And by settingoverwriteto2you can have them drawn on top of each other, that is, the series are stacked. three whole vibes, one option π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. turning off the glow-up is always an option, I guess π
π GD::Graph::lines3d
This works like GD::Graph::lines, but draws 3d line. The following settings are new or changed in GD::Graph::line3d:
line_depthβ sets the z-direction depth of the lines. Defaults to10. 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 approximatelywidth_of_chart / number_of_bars. same energy, different depth π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 specifying a false value for this option. iconic behavior, honestly β
β VERSION β
0.63 (6 December 2002)
π INSTALLATION π
You will need to have the GD::Graph version 1.30 or later installed. You should also have Perl version 5.005 or 5.6 installed. yes, that's old. we're all doing our best. π«Ά
To install, just do the normal:
perl Makefile.PL
make
make install
The documentation is in GD::Graph::Graph3d.pod. go read her π
π AUTHOR π
Jeremy Wadsack for Wadsack-Allen Digital Group. <dgsupport at wadsack-allen dot com>
Most of the modules are based on the GD::Graph modules by Martien Verbruggen. credit where credit is due, always π
π₯ 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:
- GIFgraph: Copyright (c) 1995-1999 Martien Verbruggen.
- Chart::PNGgraph: Copyright (c) 1999 Steve Bonds.
- GD::Graph: 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.
okay that's the whole page bestie, no cap π
β¨ this was perl v5.34.0, dated 2022-06-14, and it's the GD::Graph3d(3pm) page β go make something gorgeously three-dimensional, mwah π«Άπ
π¦ where this page comes from
- debian bookworm: libgd-graph3d-perl 0.63-10 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libgd-graph3d-perl 0.63-10 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms