OFC2/Bar.pm

filter: Statementstmt 33.3% 1 / 3 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 50.0% 2 / 4 CC 1 SCAR 2.6
CC
1
Cov
33%
BEGIN
1.3
CRAP 1.3
« OFC2/Axis.pm ↑ Summary OFC2/BarLineBase.pm »
1 package Chart::OFC2::Bar;
2  
3 =head1 NAME
4  
5 Chart::OFC2::Bar - OFC2 bar chart
6  
7 =head1 SYNOPSIS
8  
9 use Chart::OFC2;
10 use Chart::OFC2::Axis;
11 use Chart::OFC2::Bar;
12
13 my $chart = Chart::OFC2->new(
14 'title' => 'Bar chart test',
15 'x_axis' => Chart::OFC2::XAxis->new(
16 'labels' => [ 'Jan', 'Feb', 'Mar', 'Apr', 'May' ],
17 ),
18 'y_axis' => {
19 'max' => 'a',
20 'min' => 'a',
21 },
22 );
23
24 my $bar = Chart::OFC2::Bar->new();
25 $bar->values([ 1..5 ]);
26 $chart->add_element($bar);
27  
28 print $chart->render_chart_data();
29  
30 =head1 DESCRIPTION
31  
32 extends 'Chart::OFC2::BarLineBase';
33  
34 =cut
35  
36 0 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=2.6
37 use MooseX::StrictConstructor;
38  
39 our $VERSION = '0.07';
40  
41 extends 'Chart::OFC2::BarLineBase';
42  
43 =head1 PROPERTIES
44  
45 has '+type_name' => (default => 'bar');
46  
47 =cut
48  
49 has '+type_name' => (default => 'bar');
50  
51 1;
52  
53 =head1 Chart::OFC2::Bar::3D
54  
55 3D bar chart
56  
57 extends 'Chart::OFC2::Bar';
58  
59 =cut
60  
61 package Chart::OFC2::Bar::3D;
62 use Moose;
63 use MooseX::StrictConstructor;
64 our $VERSION = '0.07';
65 extends 'Chart::OFC2::Bar';
66  
67 =head1 PROPERTIES
68  
69 has '+type_name' => (default => 'bar_3d');
70  
71 =cut
72  
73 has '+type_name' => (default => 'bar_3d');
74  
75 1;
76  
77  
78 =head1 Chart::OFC2::Bar::Fade
79  
80 Fade bar chart
81  
82 extends 'Chart::OFC2::Bar';
83  
84 =cut
85  
86 package Chart::OFC2::Bar::Fade;
87 use Moose;
88 use MooseX::StrictConstructor;
89 our $VERSION = '0.07';
90 extends 'Chart::OFC2::Bar';
91  
92 =head1 PROPERTIES
93  
94 has '+type_name' => (default => 'bar_fade');
95  
96 =cut
97  
98 has '+type_name' => (default => 'bar_fade');
99  
100 1;
101  
102  
103 =head1 Chart::OFC2::Bar::Glass
104  
105 Glass bar chart
106  
107 extends 'Chart::OFC2::Bar';
108  
109 =cut
110  
111 package Chart::OFC2::Bar::Glass;
112 use Moose;
113 use MooseX::StrictConstructor;
114 our $VERSION = '0.07';
115 extends 'Chart::OFC2::Bar';
116  
117 =head1 PROPERTIES
118  
119 has '+type_name' => (default => 'bar_glass');
120  
121 =cut
122  
123 has '+type_name' => (default => 'bar_glass');
124  
125 1;
126  
127  
128 =head1 Chart::OFC2::Bar::Sketch
129  
130 Sketch bar chart
131  
132 extends 'Chart::OFC2::Bar';
133  
134 =cut
135  
136 package Chart::OFC2::Bar::Sketch;
137 use Moose;
138 use MooseX::StrictConstructor;
139 our $VERSION = '0.07';
140 extends 'Chart::OFC2::Bar';
141  
142 =head1 PROPERTIES
143  
144 has '+type_name' => (default => 'bar_sketch');
145  
146 =cut
147  
148 has '+type_name' => (default => 'bar_sketch');
149  
150 1;
151  
152  
153 =head1 Chart::OFC2::Bar::Filled
154  
155 Filled bar chart
156  
157 extends 'Chart::OFC2::Bar';
158  
159 =cut
160  
161 package Chart::OFC2::Bar::Filled;
162 use Moose;
163 use MooseX::StrictConstructor;
164 our $VERSION = '0.07';
165 extends 'Chart::OFC2::Bar';
166  
167 =head1 PROPERTIES
168  
169 has '+type_name' => (default => 'bar_filled');
170 has 'outline_collor' => (is => 'rw', isa => 'Str',);
171  
172 =cut
173  
174 has '+type_name' => (default => 'bar_filled');
175 has 'outline_collor' => (is => 'rw', isa => 'Str',);
176  
177  
178 1;
179  
180  
181 =head1 Chart::OFC2::Bar::Stack
182  
183 Stack bar chart
184  
185 extends 'Chart::OFC2::Bar';
186  
187 =cut
188  
189 package Chart::OFC2::Bar::Stack;
190 use Moose;
191 use MooseX::StrictConstructor;
192 our $VERSION = '0.07';
193 extends 'Chart::OFC2::Bar';
194  
195 =head1 PROPERTIES
196  
197 has '+type_name' => (default => 'bar_stack');
198 has 'text' => (is => 'rw', isa => 'Str',);
199  
200 =cut
201  
202 has '+type_name' => (default => 'bar_stack');
203 has 'text' => (is => 'rw', isa => 'Str',);
204  
205 1;
« OFC2/Axis.pm ↑ Summary OFC2/BarLineBase.pm »