line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# critic is on drugs, I guess |
2
|
|
|
|
|
|
|
package Chart::OFC::Dataset::3DBar; ## no critic RequireFilenameMatchesPackage |
3
|
|
|
|
|
|
|
$Chart::OFC::Dataset::3DBar::VERSION = '0.12'; |
4
|
16
|
|
|
16
|
|
241
|
use strict; |
|
16
|
|
|
|
|
39
|
|
|
16
|
|
|
|
|
746
|
|
5
|
16
|
|
|
16
|
|
102
|
use warnings; |
|
16
|
|
|
|
|
42
|
|
|
16
|
|
|
|
|
549
|
|
6
|
|
|
|
|
|
|
|
7
|
16
|
|
|
16
|
|
101
|
use Moose; |
|
16
|
|
|
|
|
37
|
|
|
16
|
|
|
|
|
140
|
|
8
|
16
|
|
|
16
|
|
124264
|
use MooseX::StrictConstructor; |
|
16
|
|
|
|
|
42
|
|
|
16
|
|
|
|
|
183
|
|
9
|
16
|
|
|
16
|
|
65280
|
use Chart::OFC::Types; |
|
16
|
|
|
|
|
65
|
|
|
16
|
|
|
|
|
912
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
extends 'Chart::OFC::Dataset::Bar'; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub type |
14
|
|
|
|
|
|
|
{ |
15
|
2
|
|
|
2
|
0
|
8
|
return 'bar_3d'; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
16
|
|
|
16
|
|
99
|
no Moose; |
|
16
|
|
|
|
|
37
|
|
|
16
|
|
|
|
|
99
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
__PACKAGE__->meta()->make_immutable(); |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
1; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
# ABSTRACT: A dataset represented as 3D bars |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
__END__ |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=pod |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 NAME |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
Chart::OFC::Dataset::3DBar - A dataset represented as 3D bars |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 VERSION |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
version 0.12 |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 SYNOPSIS |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
my @numbers = (1, 2, 3); |
42
|
|
|
|
|
|
|
my $bars = Chart::OFC::Dataset::3DBar->new( |
43
|
|
|
|
|
|
|
values => \@numbers, |
44
|
|
|
|
|
|
|
opacity => 60, |
45
|
|
|
|
|
|
|
fill_color => 'purple', |
46
|
|
|
|
|
|
|
label => 'Daily Sales in $', |
47
|
|
|
|
|
|
|
text_size => 12, |
48
|
|
|
|
|
|
|
); |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 DESCRIPTION |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
This class contains values to be charted as bars on a grid chart. The |
53
|
|
|
|
|
|
|
bars are filled with the specified color and have a 3D look. |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=for Pod::Coverage type |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
This class is a subclass of C<Chart::OFC::Dataset::Bar> and accepts |
60
|
|
|
|
|
|
|
all of that class's attributes. It has no attributes of its own. |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head1 ROLES |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
This class does the C<Chart::OFC::Role::OFCDataLines> role. |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head1 AUTHOR |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
Dave Rolsky <autarch@urth.org> |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
This software is Copyright (c) 2014 by Dave Rolsky. |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
This is free software, licensed under: |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
The Artistic License 2.0 (GPL Compatible) |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=cut |