1Template::Plugin::GD::GUrsaeprh:C:opniter(i3b)uted PerlTDeomcpulmaetnet:a:tPiloungin::GD::Graph::pie(3)
2
3
4
6 Template::Plugin::GD::Graph::pie - Create pie charts with legends
7
9 [% USE g = GD.Graph.pie(x_size, y_size); %]
10
12 [% FILTER null;
13 data = [
14 ["1st","2nd","3rd","4th","5th","6th"],
15 [ 4, 2, 3, 4, 3, 3.5]
16 ];
17
18 USE my_graph = GD.Graph.pie( 250, 200 );
19
20 my_graph.set(
21 title => 'A Pie Chart',
22 label => 'Label',
23 axislabelclr => 'black',
24 pie_height => 36,
25
26 transparent => 0,
27 );
28 my_graph.plot(data).png ⎪ stdout(1);
29 END;
30 -%]
31
33 The GD.Graph.pie plugin provides an interface to the GD::Graph::pie
34 class defined by the GD::Graph module. It allows an (x,y) data set to
35 be plotted as a pie chart. The x values are typically strings.
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::area, Template::Plugin::GD::Graph::mixed,
67 Template::Plugin::GD::Graph::pie3d, GD
68
69
70
71perl v5.8.8 2006-02-03Template::Plugin::GD::Graph::pie(3)