line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
use Moose; |
2
|
5
|
|
|
5
|
|
29
|
use MooseX::ExtraArgs; |
|
5
|
|
|
|
|
14
|
|
|
5
|
|
|
|
|
31
|
|
3
|
5
|
|
|
5
|
|
26537
|
use Moose::Util::TypeConstraints qw(enum union); |
|
5
|
|
|
|
|
11
|
|
|
5
|
|
|
|
|
30
|
|
4
|
5
|
|
|
5
|
|
8322
|
if ( !defined Moose::Util::TypeConstraints::find_type_constraint('PDL') ) { |
|
5
|
|
|
|
|
31
|
|
|
5
|
|
|
|
|
40
|
|
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 dtickrange => ( |
35
|
|
|
|
|
|
|
is => "rw", |
36
|
|
|
|
|
|
|
isa => "ArrayRef|PDL", |
37
|
|
|
|
|
|
|
documentation => |
38
|
|
|
|
|
|
|
"range [*min*, *max*], where *min*, *max* - dtick values which describe some zoom level, it is possible to omit *min* or *max* value by passing *null*", |
39
|
|
|
|
|
|
|
); |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
has enabled => ( |
42
|
|
|
|
|
|
|
is => "rw", |
43
|
|
|
|
|
|
|
isa => "Bool", |
44
|
|
|
|
|
|
|
documentation => |
45
|
|
|
|
|
|
|
"Determines whether or not this stop is used. If `false`, this stop is ignored even within its `dtickrange`.", |
46
|
|
|
|
|
|
|
); |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
has name => ( |
49
|
|
|
|
|
|
|
is => "rw", |
50
|
|
|
|
|
|
|
isa => "Str", |
51
|
|
|
|
|
|
|
documentation => |
52
|
|
|
|
|
|
|
"When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. You can modify these items in the output figure by making your own item with `templateitemname` matching this `name` alongside your modifications (including `visible: false` or `enabled: false` to hide it). Has no effect outside of a template.", |
53
|
|
|
|
|
|
|
); |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
has templateitemname => ( |
56
|
|
|
|
|
|
|
is => "rw", |
57
|
|
|
|
|
|
|
isa => "Str", |
58
|
|
|
|
|
|
|
documentation => |
59
|
|
|
|
|
|
|
"Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with `templateitemname` matching its `name`, alongside your modifications (including `visible: false` or `enabled: false` to hide it). If there is no template or no matching item, this item will be hidden unless you explicitly show it with `visible: true`.", |
60
|
|
|
|
|
|
|
); |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
has value => ( is => "rw", |
63
|
|
|
|
|
|
|
isa => "Str", |
64
|
|
|
|
|
|
|
documentation => "string - dtickformat for described zoom level, the same as *tickformat*", |
65
|
|
|
|
|
|
|
); |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable(); |
68
|
|
|
|
|
|
|
1; |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=pod |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=encoding utf-8 |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=head1 NAME |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
Chart::Plotly::Trace::Scatter::Marker::Colorbar::Tickformatstop - This attribute is one of the possible options for the trace scatter. |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=head1 VERSION |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
version 0.042 |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=head1 SYNOPSIS |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
use HTML::Show; |
86
|
|
|
|
|
|
|
use Chart::Plotly; |
87
|
|
|
|
|
|
|
use Chart::Plotly::Trace::Scatter; |
88
|
|
|
|
|
|
|
my $scatter = Chart::Plotly::Trace::Scatter->new( x => [ 1 .. 5 ], y => [ 1 .. 5 ] ); |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
HTML::Show::show( Chart::Plotly::render_full_html( data => [$scatter] ) ); |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=head1 DESCRIPTION |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
This attribute is part of the possible options for the trace scatter. |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
This file has been autogenerated from the official plotly.js source. |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
If you like Plotly, please support them: L<https://plot.ly/> |
99
|
|
|
|
|
|
|
Open source announcement: L<https://plot.ly/javascript/open-source-announcement/> |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
Full reference: L<https://plot.ly/javascript/reference/#scatter> |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
=head1 DISCLAIMER |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
This is an unofficial Plotly Perl module. Currently I'm not affiliated in any way with Plotly. |
106
|
|
|
|
|
|
|
But I think plotly.js is a great library and I want to use it with perl. |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
=head1 METHODS |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
=head2 TO_JSON |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
Serialize the trace to JSON. This method should be called only by L<JSON> serializer. |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
=over |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
=item * dtickrange |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
range [*min*, *max*], where *min*, *max* - dtick values which describe some zoom level, it is possible to omit *min* or *max* value by passing *null* |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
=item * enabled |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
Determines whether or not this stop is used. If `false`, this stop is ignored even within its `dtickrange`. |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
=item * name |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. You can modify these items in the output figure by making your own item with `templateitemname` matching this `name` alongside your modifications (including `visible: false` or `enabled: false` to hide it). Has no effect outside of a template. |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
=item * templateitemname |
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with `templateitemname` matching its `name`, alongside your modifications (including `visible: false` or `enabled: false` to hide it). If there is no template or no matching item, this item will be hidden unless you explicitly show it with `visible: true`. |
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
=item * value |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
string - dtickformat for described zoom level, the same as *tickformat* |
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
=back |
139
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
=head1 AUTHOR |
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
Pablo Rodríguez González <pablo.rodriguez.gonzalez@gmail.com> |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
145
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
This software is Copyright (c) 2022 by Pablo Rodríguez González. |
147
|
|
|
|
|
|
|
|
148
|
|
|
|
|
|
|
This is free software, licensed under: |
149
|
|
|
|
|
|
|
|
150
|
|
|
|
|
|
|
The MIT (X11) License |
151
|
|
|
|
|
|
|
|
152
|
|
|
|
|
|
|
=cut |