line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
use Moose; |
2
|
4
|
|
|
4
|
|
22
|
use MooseX::ExtraArgs; |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
24
|
|
3
|
4
|
|
|
4
|
|
20899
|
use Moose::Util::TypeConstraints qw(enum union); |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
17
|
|
4
|
4
|
|
|
4
|
|
6333
|
if ( !defined Moose::Util::TypeConstraints::find_type_constraint('PDL') ) { |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
26
|
|
5
|
|
|
|
|
|
|
Moose::Util::TypeConstraints::type('PDL'); |
6
|
|
|
|
|
|
|
} |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = '0.042'; # VERSION |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
# ABSTRACT: This attribute is one of the possible options for the trace scatter. |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
my $self = shift; |
13
|
|
|
|
|
|
|
my $extra_args = $self->extra_args // {}; |
14
|
0
|
|
|
0
|
1
|
|
my $meta = $self->meta; |
15
|
0
|
|
0
|
|
|
|
my %hash = %$self; |
16
|
0
|
|
|
|
|
|
for my $name ( sort keys %hash ) { |
17
|
0
|
|
|
|
|
|
my $attr = $meta->get_attribute($name); |
18
|
0
|
|
|
|
|
|
if ( defined $attr ) { |
19
|
0
|
|
|
|
|
|
my $value = $hash{$name}; |
20
|
0
|
0
|
|
|
|
|
my $type = $attr->type_constraint; |
21
|
0
|
|
|
|
|
|
if ( $type && $type->equals('Bool') ) { |
22
|
0
|
|
|
|
|
|
$hash{$name} = $value ? \1 : \0; |
23
|
0
|
0
|
0
|
|
|
|
} |
24
|
0
|
0
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
%hash = ( %hash, %$extra_args ); |
27
|
|
|
|
|
|
|
delete $hash{'extra_args'}; |
28
|
0
|
|
|
|
|
|
if ( $self->can('type') && ( !defined $hash{'type'} ) ) { |
29
|
0
|
|
|
|
|
|
$hash{type} = $self->type(); |
30
|
0
|
0
|
0
|
|
|
|
} |
31
|
0
|
|
|
|
|
|
return \%hash; |
32
|
|
|
|
|
|
|
} |
33
|
0
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
has array => ( |
35
|
|
|
|
|
|
|
is => "rw", |
36
|
|
|
|
|
|
|
isa => "ArrayRef|PDL", |
37
|
|
|
|
|
|
|
documentation => |
38
|
|
|
|
|
|
|
"Sets the data corresponding the length of each error bar. Values are plotted relative to the underlying data.", |
39
|
|
|
|
|
|
|
); |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
has arrayminus => ( |
42
|
|
|
|
|
|
|
is => "rw", |
43
|
|
|
|
|
|
|
isa => "ArrayRef|PDL", |
44
|
|
|
|
|
|
|
documentation => |
45
|
|
|
|
|
|
|
"Sets the data corresponding the length of each error bar in the bottom (left) direction for vertical (horizontal) bars Values are plotted relative to the underlying data.", |
46
|
|
|
|
|
|
|
); |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
has arrayminussrc => ( is => "rw", |
49
|
|
|
|
|
|
|
isa => "Str", |
50
|
|
|
|
|
|
|
documentation => "Sets the source reference on Chart Studio Cloud for `arrayminus`.", |
51
|
|
|
|
|
|
|
); |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
has arraysrc => ( is => "rw", |
54
|
|
|
|
|
|
|
isa => "Str", |
55
|
|
|
|
|
|
|
documentation => "Sets the source reference on Chart Studio Cloud for `array`.", |
56
|
|
|
|
|
|
|
); |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
has color => ( is => "rw", |
59
|
|
|
|
|
|
|
isa => "Str", |
60
|
|
|
|
|
|
|
documentation => "Sets the stoke color of the error bars.", |
61
|
|
|
|
|
|
|
); |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
has copy_ystyle => ( is => "rw", |
64
|
|
|
|
|
|
|
isa => "Bool", ); |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
has symmetric => ( |
67
|
|
|
|
|
|
|
is => "rw", |
68
|
|
|
|
|
|
|
isa => "Bool", |
69
|
|
|
|
|
|
|
documentation => |
70
|
|
|
|
|
|
|
"Determines whether or not the error bars have the same length in both direction (top/bottom for vertical bars, left/right for horizontal bars.", |
71
|
|
|
|
|
|
|
); |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
has thickness => ( is => "rw", |
74
|
|
|
|
|
|
|
isa => "Num", |
75
|
|
|
|
|
|
|
documentation => "Sets the thickness (in px) of the error bars.", |
76
|
|
|
|
|
|
|
); |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
has traceref => ( is => "rw", |
79
|
|
|
|
|
|
|
isa => "Int", ); |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
has tracerefminus => ( is => "rw", |
82
|
|
|
|
|
|
|
isa => "Int", ); |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
has value => ( |
85
|
|
|
|
|
|
|
is => "rw", |
86
|
|
|
|
|
|
|
isa => "Num", |
87
|
|
|
|
|
|
|
documentation => |
88
|
|
|
|
|
|
|
"Sets the value of either the percentage (if `type` is set to *percent*) or the constant (if `type` is set to *constant*) corresponding to the lengths of the error bars.", |
89
|
|
|
|
|
|
|
); |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
has valueminus => ( |
92
|
|
|
|
|
|
|
is => "rw", |
93
|
|
|
|
|
|
|
isa => "Num", |
94
|
|
|
|
|
|
|
documentation => |
95
|
|
|
|
|
|
|
"Sets the value of either the percentage (if `type` is set to *percent*) or the constant (if `type` is set to *constant*) corresponding to the lengths of the error bars in the bottom (left) direction for vertical (horizontal) bars", |
96
|
|
|
|
|
|
|
); |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
has visible => ( is => "rw", |
99
|
|
|
|
|
|
|
isa => "Bool", |
100
|
|
|
|
|
|
|
documentation => "Determines whether or not this set of error bars is visible.", |
101
|
|
|
|
|
|
|
); |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
has width => ( is => "rw", |
104
|
|
|
|
|
|
|
isa => "Num", |
105
|
|
|
|
|
|
|
documentation => "Sets the width (in px) of the cross-bar at both ends of the error bars.", |
106
|
|
|
|
|
|
|
); |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable(); |
109
|
|
|
|
|
|
|
1; |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
=pod |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
=encoding utf-8 |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
=head1 NAME |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
Chart::Plotly::Trace::Scatter::Error_x - This attribute is one of the possible options for the trace scatter. |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
=head1 VERSION |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
version 0.042 |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
=head1 SYNOPSIS |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
use HTML::Show; |
127
|
|
|
|
|
|
|
use Chart::Plotly; |
128
|
|
|
|
|
|
|
use Chart::Plotly::Trace::Scatter; |
129
|
|
|
|
|
|
|
my $scatter = Chart::Plotly::Trace::Scatter->new( x => [ 1 .. 5 ], y => [ 1 .. 5 ] ); |
130
|
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
HTML::Show::show( Chart::Plotly::render_full_html( data => [$scatter] ) ); |
132
|
|
|
|
|
|
|
|
133
|
|
|
|
|
|
|
=head1 DESCRIPTION |
134
|
|
|
|
|
|
|
|
135
|
|
|
|
|
|
|
This attribute is part of the possible options for the trace scatter. |
136
|
|
|
|
|
|
|
|
137
|
|
|
|
|
|
|
This file has been autogenerated from the official plotly.js source. |
138
|
|
|
|
|
|
|
|
139
|
|
|
|
|
|
|
If you like Plotly, please support them: L<https://plot.ly/> |
140
|
|
|
|
|
|
|
Open source announcement: L<https://plot.ly/javascript/open-source-announcement/> |
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
Full reference: L<https://plot.ly/javascript/reference/#scatter> |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
=head1 DISCLAIMER |
145
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
This is an unofficial Plotly Perl module. Currently I'm not affiliated in any way with Plotly. |
147
|
|
|
|
|
|
|
But I think plotly.js is a great library and I want to use it with perl. |
148
|
|
|
|
|
|
|
|
149
|
|
|
|
|
|
|
=head1 METHODS |
150
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
=head2 TO_JSON |
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
Serialize the trace to JSON. This method should be called only by L<JSON> serializer. |
154
|
|
|
|
|
|
|
|
155
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
156
|
|
|
|
|
|
|
|
157
|
|
|
|
|
|
|
=over |
158
|
|
|
|
|
|
|
|
159
|
|
|
|
|
|
|
=item * array |
160
|
|
|
|
|
|
|
|
161
|
|
|
|
|
|
|
Sets the data corresponding the length of each error bar. Values are plotted relative to the underlying data. |
162
|
|
|
|
|
|
|
|
163
|
|
|
|
|
|
|
=item * arrayminus |
164
|
|
|
|
|
|
|
|
165
|
|
|
|
|
|
|
Sets the data corresponding the length of each error bar in the bottom (left) direction for vertical (horizontal) bars Values are plotted relative to the underlying data. |
166
|
|
|
|
|
|
|
|
167
|
|
|
|
|
|
|
=item * arrayminussrc |
168
|
|
|
|
|
|
|
|
169
|
|
|
|
|
|
|
Sets the source reference on Chart Studio Cloud for `arrayminus`. |
170
|
|
|
|
|
|
|
|
171
|
|
|
|
|
|
|
=item * arraysrc |
172
|
|
|
|
|
|
|
|
173
|
|
|
|
|
|
|
Sets the source reference on Chart Studio Cloud for `array`. |
174
|
|
|
|
|
|
|
|
175
|
|
|
|
|
|
|
=item * color |
176
|
|
|
|
|
|
|
|
177
|
|
|
|
|
|
|
Sets the stoke color of the error bars. |
178
|
|
|
|
|
|
|
|
179
|
|
|
|
|
|
|
=item * copy_ystyle |
180
|
|
|
|
|
|
|
|
181
|
|
|
|
|
|
|
=item * symmetric |
182
|
|
|
|
|
|
|
|
183
|
|
|
|
|
|
|
Determines whether or not the error bars have the same length in both direction (top/bottom for vertical bars, left/right for horizontal bars. |
184
|
|
|
|
|
|
|
|
185
|
|
|
|
|
|
|
=item * thickness |
186
|
|
|
|
|
|
|
|
187
|
|
|
|
|
|
|
Sets the thickness (in px) of the error bars. |
188
|
|
|
|
|
|
|
|
189
|
|
|
|
|
|
|
=item * traceref |
190
|
|
|
|
|
|
|
|
191
|
|
|
|
|
|
|
=item * tracerefminus |
192
|
|
|
|
|
|
|
|
193
|
|
|
|
|
|
|
=item * value |
194
|
|
|
|
|
|
|
|
195
|
|
|
|
|
|
|
Sets the value of either the percentage (if `type` is set to *percent*) or the constant (if `type` is set to *constant*) corresponding to the lengths of the error bars. |
196
|
|
|
|
|
|
|
|
197
|
|
|
|
|
|
|
=item * valueminus |
198
|
|
|
|
|
|
|
|
199
|
|
|
|
|
|
|
Sets the value of either the percentage (if `type` is set to *percent*) or the constant (if `type` is set to *constant*) corresponding to the lengths of the error bars in the bottom (left) direction for vertical (horizontal) bars |
200
|
|
|
|
|
|
|
|
201
|
|
|
|
|
|
|
=item * visible |
202
|
|
|
|
|
|
|
|
203
|
|
|
|
|
|
|
Determines whether or not this set of error bars is visible. |
204
|
|
|
|
|
|
|
|
205
|
|
|
|
|
|
|
=item * width |
206
|
|
|
|
|
|
|
|
207
|
|
|
|
|
|
|
Sets the width (in px) of the cross-bar at both ends of the error bars. |
208
|
|
|
|
|
|
|
|
209
|
|
|
|
|
|
|
=back |
210
|
|
|
|
|
|
|
|
211
|
|
|
|
|
|
|
=head1 AUTHOR |
212
|
|
|
|
|
|
|
|
213
|
|
|
|
|
|
|
Pablo Rodríguez González <pablo.rodriguez.gonzalez@gmail.com> |
214
|
|
|
|
|
|
|
|
215
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
216
|
|
|
|
|
|
|
|
217
|
|
|
|
|
|
|
This software is Copyright (c) 2022 by Pablo Rodríguez González. |
218
|
|
|
|
|
|
|
|
219
|
|
|
|
|
|
|
This is free software, licensed under: |
220
|
|
|
|
|
|
|
|
221
|
|
|
|
|
|
|
The MIT (X11) License |
222
|
|
|
|
|
|
|
|
223
|
|
|
|
|
|
|
=cut |