line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# $Id$ |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package Google::Chart::Type::Bar; |
4
|
1
|
|
|
1
|
|
7
|
use Moose; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
8
|
|
5
|
1
|
|
|
1
|
|
8002
|
use Moose::Util::TypeConstraints; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
11
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
with 'Google::Chart::Type::Simple'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
enum 'Google::Chart::Type::Bar::Orientation' => qw(horizontal vertical); |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
has 'stacked' => ( |
12
|
|
|
|
|
|
|
is => 'rw', |
13
|
|
|
|
|
|
|
isa => 'Bool', |
14
|
|
|
|
|
|
|
required => 1, |
15
|
|
|
|
|
|
|
default => 1, |
16
|
|
|
|
|
|
|
); |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
has 'orientation' => ( |
19
|
|
|
|
|
|
|
is => 'rw', |
20
|
|
|
|
|
|
|
isa => 'Google::Chart::Type::Bar::Orientation', |
21
|
|
|
|
|
|
|
required => 1, |
22
|
|
|
|
|
|
|
default => 'vertical', |
23
|
|
|
|
|
|
|
); |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
26
|
|
|
|
|
|
|
|
27
|
1
|
|
|
1
|
|
2529
|
no Moose; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
6
|
|
28
|
1
|
|
|
1
|
|
219
|
no Moose::Util::TypeConstraints; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
6
|
|
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
sub parameter_value { |
31
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
32
|
|
|
|
|
|
|
|
33
|
0
|
0
|
|
|
|
|
return sprintf( 'b%s%s', |
|
|
0
|
|
|
|
|
|
34
|
|
|
|
|
|
|
$self->orientation eq 'vertical' ? 'v' : 'h', |
35
|
|
|
|
|
|
|
$self->stacked ? 's' : 'g' |
36
|
|
|
|
|
|
|
); |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
1; |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
__END__ |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 NAME |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
Google::Chart::Type::Bar - Google::Chart Bar Type |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 SYNOPSIS |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
Google::Chart->new( |
50
|
|
|
|
|
|
|
type => { |
51
|
|
|
|
|
|
|
module => "Bar", |
52
|
|
|
|
|
|
|
orientation => "horizontal", |
53
|
|
|
|
|
|
|
} |
54
|
|
|
|
|
|
|
); |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head1 METHODS |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head2 parameter_value |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=cut |