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
50 separate distribution for TT version 2.15.
51
53 Copyright (C) 2001 Craig Barratt <craig@arraycomm.com>, 2006 Andy
54 Wardley <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,
63 Template::Plugin::GD::Graph::lines3d,
64 Template::Plugin::GD::Graph::bars, Template::Plugin::GD::Graph::bars3d,
65 Template::Plugin::GD::Graph::points,
66 Template::Plugin::GD::Graph::linespoints,
67 Template::Plugin::GD::Graph::area, Template::Plugin::GD::Graph::mixed,
68 Template::Plugin::GD::Graph::pie3d, GD
69
70
71
72perl v5.32.0 2020-07-28Template::Plugin::GD::Graph::pie(3)