1Template::Plugin::GD::GUrsaeprh:C:oanrterai(b3u)ted PerlTeDmopcluamteen:t:aPtliuognin::GD::Graph::area(3)
2
3
4
6 Template::Plugin::GD::Graph::area - Create area graphs with axes and
7 legends
8
10 [% USE g = GD.Graph.area(x_size, y_size); %]
11
13 [% FILTER null;
14 data = [
15 ["1st","2nd","3rd","4th","5th","6th","7th", "8th", "9th"],
16 [ 5, 12, 24, 33, 19, 8, 6, 15, 21],
17 [ -1, -2, -5, -6, -3, 1.5, 1, 1.3, 2]
18 ];
19
20 USE my_graph = GD.Graph.area();
21 my_graph.set(
22 two_axes => 1,
23 zero_axis => 1,
24 transparent => 0,
25 );
26 my_graph.set_legend('left axis', 'right axis' );
27 my_graph.plot(data).png ⎪ stdout(1);
28 END;
29 -%]
30
32 The GD.Graph.area plugin provides an interface to the GD::Graph::area
33 class defined by the GD::Graph module. It allows one or more (x,y) data
34 sets to be plotted as lines with the area between the line and x-axis
35 shaded, in addition to axes and legends.
36
37 See GD::Graph for more details.
38
40 Thomas Boutell wrote the GD graphics library.
41
42 Lincoln D. Stein wrote the Perl GD modules that interface to it.
43
44 Martien Verbruggen wrote the GD::Graph module.
45
46 Craig Barratt <craig@arraycomm.com> wrote the original GD plugins for
47 the Template Toolkit (2001).
48
49 Andy Wardley <abw@cpan.org> extracted them from the TT core into a sep‐
50 arate distribution for TT version 2.15.
51
53 Copyright (C) 2001 Craig Barratt <craig@arraycomm.com>, 2006 Andy Ward‐
54 ley <abw@cpan.org>.
55
56 GD::Graph is copyright 1999 Martien Verbruggen.
57
58 This module is free software; you can redistribute it and/or modify it
59 under the same terms as Perl itself.
60
62 Template::Plugin::GD, Template::Plugin::GD::Graph::lines, Tem‐
63 plate::Plugin::GD::Graph::lines3d, Template::Plugin::GD::Graph::bars,
64 Template::Plugin::GD::Graph::bars3d, Template::Plug‐
65 in::GD::Graph::points, Template::Plugin::GD::Graph::linespoints, Tem‐
66 plate::Plugin::GD::Graph::mixed, Template::Plugin::GD::Graph::pie, Tem‐
67 plate::Plugin::GD::Graph::pie3d, GD
68
69
70
71perl v5.8.8 2006-02-0T3emplate::Plugin::GD::Graph::area(3)