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