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