1Template::Plugin::GD::GUrsaeprh:C:obnatrrsi(b3u)ted PerlTeDmopcluamteen:t:aPtliuognin::GD::Graph::bars(3)
2
3
4

NAME

6       Template::Plugin::GD::Graph::bars - Create bar graphs with axes and
7       legends
8

SYNOPSIS

10           [% USE g = GD.Graph.bars(x_size, y_size); %]
11

EXAMPLES

13           [% FILTER null;
14               data = [
15                   ["1st","2nd","3rd","4th","5th","6th","7th", "8th", "9th"],
16                   [    1,    2,    5,    6,    3,  1.5,    1,     3,     4],
17               ];
18
19               USE my_graph = GD.Graph.bars();
20
21               my_graph.set(
22                   x_label         => 'X Label',
23                   y_label         => 'Y label',
24                   title           => 'A Simple Bar Chart',
25                   y_max_value     => 8,
26                   y_tick_number   => 8,
27                   y_label_skip    => 2,
28
29                   # shadows
30                   bar_spacing     => 8,
31                   shadow_depth    => 4,
32                   shadowclr       => 'dred',
33
34                   transparent     => 0,
35               );
36               my_graph.plot(data).png | stdout(1);
37              END;
38           -%]
39
40           [% FILTER null;
41               data = [
42                   ["1st","2nd","3rd","4th","5th","6th","7th", "8th", "9th"],
43                   [    5,   12,   24,   33,   19,    8,    6,    15,    21],
44                   [    1,    2,    5,    6,    3,  1.5,    1,     3,     4],
45               ];
46
47               USE my_graph = GD.Graph.bars();
48
49               my_graph.set(
50                   x_label         => 'X Label',
51                   y_label         => 'Y label',
52                   title           => 'Two data sets',
53
54                   # shadows
55                   bar_spacing     => 8,
56                   shadow_depth    => 4,
57                   shadowclr       => 'dred',
58
59                   long_ticks      => 1,
60                   y_max_value     => 40,
61                   y_tick_number   => 8,
62                   y_label_skip    => 2,
63                   bar_spacing     => 3,
64
65                   accent_treshold => 200,
66
67                   transparent     => 0,
68               );
69               my_graph.set_legend( 'Data set 1', 'Data set 2' );
70               my_graph.plot(data).png | stdout(1);
71              END;
72           -%]
73

DESCRIPTION

75       The GD.Graph.bars plugin provides an interface to the GD::Graph::bars
76       class defined by the GD::Graph module. It allows one or more (x,y) data
77       sets to be plotted with each point represented by a bar, in addition to
78       axes and legends.
79
80       See GD::Graph for more details.
81

AUTHOR

83       Thomas Boutell wrote the GD graphics library.
84
85       Lincoln D. Stein wrote the Perl GD modules that interface to it.
86
87       Martien Verbruggen wrote the GD::Graph module.
88
89       Craig Barratt <craig@arraycomm.com> wrote the original GD plugins for
90       the Template Toolkit (2001).
91
92       Andy Wardley <abw@cpan.org> extracted them from the TT core into a
93       separate distribution for TT version 2.15.
94
96       Copyright (C) 2001 Craig Barratt <craig@arraycomm.com>, 2006 Andy
97       Wardley <abw@cpan.org>.
98
99       GD::Graph is copyright 1999 Martien Verbruggen.
100
101       This module is free software; you can redistribute it and/or modify it
102       under the same terms as Perl itself.
103

SEE ALSO

105       Template::Plugin::GD, Template::Plugin::GD::Graph::lines,
106       Template::Plugin::GD::Graph::lines3d,
107       Template::Plugin::GD::Graph::bars3d,
108       Template::Plugin::GD::Graph::points,
109       Template::Plugin::GD::Graph::linespoints,
110       Template::Plugin::GD::Graph::area, Template::Plugin::GD::Graph::mixed,
111       Template::Plugin::GD::Graph::pie, Template::Plugin::GD::Graph::pie3d,
112       GD
113
114
115
116perl v5.12.0                      2006-02-0T3emplate::Plugin::GD::Graph::bars(3)
Impressum