line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Chart::OFC::Dataset::GlassBar; |
2
|
|
|
|
|
|
|
$Chart::OFC::Dataset::GlassBar::VERSION = '0.12'; |
3
|
16
|
|
|
16
|
|
99
|
use strict; |
|
16
|
|
|
|
|
35
|
|
|
16
|
|
|
|
|
674
|
|
4
|
16
|
|
|
16
|
|
93
|
use warnings; |
|
16
|
|
|
|
|
41
|
|
|
16
|
|
|
|
|
533
|
|
5
|
|
|
|
|
|
|
|
6
|
16
|
|
|
16
|
|
98
|
use Moose; |
|
16
|
|
|
|
|
32
|
|
|
16
|
|
|
|
|
128
|
|
7
|
16
|
|
|
16
|
|
120668
|
use MooseX::StrictConstructor; |
|
16
|
|
|
|
|
42
|
|
|
16
|
|
|
|
|
342
|
|
8
|
16
|
|
|
16
|
|
56665
|
use Chart::OFC::Types; |
|
16
|
|
|
|
|
42
|
|
|
16
|
|
|
|
|
1113
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
extends 'Chart::OFC::Dataset::OutlinedBar'; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub type |
13
|
|
|
|
|
|
|
{ |
14
|
4
|
|
|
4
|
0
|
23
|
return 'bar_glass'; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
16
|
|
|
16
|
|
95
|
no Moose; |
|
16
|
|
|
|
|
33
|
|
|
16
|
|
|
|
|
170
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
__PACKAGE__->meta()->make_immutable(); |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
1; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=pod |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=for Pod::Coverage type |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 SYNOPSIS |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
my @numbers = (1, 2, 3); |
31
|
|
|
|
|
|
|
my $bars = Chart::OFC::Dataset::GlassBar->new( |
32
|
|
|
|
|
|
|
values => \@numbers, |
33
|
|
|
|
|
|
|
opacity => 60, |
34
|
|
|
|
|
|
|
fill_color => 'purple', |
35
|
|
|
|
|
|
|
label => 'Daily Sales in $', |
36
|
|
|
|
|
|
|
text_size => 12, |
37
|
|
|
|
|
|
|
); |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 DESCRIPTION |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
This class contains values to be charted as bars on a grid chart. The |
42
|
|
|
|
|
|
|
bars are filled with the specified color and have a separate outline |
43
|
|
|
|
|
|
|
color. |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
This class is a subclass of C<Chart::OFC::Dataset::OutlinedBar> and accepts |
48
|
|
|
|
|
|
|
all of that class's attributes. It has no attributes of its own. |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 ROLES |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
This class does the C<Chart::OFC::Role::OFCDataLines> role. |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=cut |