line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
use Moose; |
2
|
4
|
|
|
4
|
|
27
|
use MooseX::ExtraArgs; |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
25
|
|
3
|
4
|
|
|
4
|
|
21681
|
use Moose::Util::TypeConstraints qw(enum union); |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
29
|
|
4
|
4
|
|
|
4
|
|
7272
|
if ( !defined Moose::Util::TypeConstraints::find_type_constraint('PDL') ) { |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
37
|
|
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 color => ( is => "rw", |
35
|
|
|
|
|
|
|
isa => "Str", |
36
|
|
|
|
|
|
|
documentation => "Sets the marker color of selected points.", |
37
|
|
|
|
|
|
|
); |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
has opacity => ( is => "rw", |
40
|
|
|
|
|
|
|
isa => "Num", |
41
|
|
|
|
|
|
|
documentation => "Sets the marker opacity of selected points.", |
42
|
|
|
|
|
|
|
); |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
has size => ( is => "rw", |
45
|
|
|
|
|
|
|
isa => "Num", |
46
|
|
|
|
|
|
|
documentation => "Sets the marker size of selected points.", |
47
|
|
|
|
|
|
|
); |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable(); |
50
|
|
|
|
|
|
|
1; |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=pod |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=encoding utf-8 |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 NAME |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
Chart::Plotly::Trace::Scatter::Selected::Marker - This attribute is one of the possible options for the trace scatter. |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head1 VERSION |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
version 0.042 |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head1 SYNOPSIS |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
use HTML::Show; |
68
|
|
|
|
|
|
|
use Chart::Plotly; |
69
|
|
|
|
|
|
|
use Chart::Plotly::Trace::Scatter; |
70
|
|
|
|
|
|
|
my $scatter = Chart::Plotly::Trace::Scatter->new( x => [ 1 .. 5 ], y => [ 1 .. 5 ] ); |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
HTML::Show::show( Chart::Plotly::render_full_html( data => [$scatter] ) ); |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=head1 DESCRIPTION |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
This attribute is part of the possible options for the trace scatter. |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
This file has been autogenerated from the official plotly.js source. |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
If you like Plotly, please support them: L<https://plot.ly/> |
81
|
|
|
|
|
|
|
Open source announcement: L<https://plot.ly/javascript/open-source-announcement/> |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
Full reference: L<https://plot.ly/javascript/reference/#scatter> |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=head1 DISCLAIMER |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
This is an unofficial Plotly Perl module. Currently I'm not affiliated in any way with Plotly. |
88
|
|
|
|
|
|
|
But I think plotly.js is a great library and I want to use it with perl. |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=head1 METHODS |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=head2 TO_JSON |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
Serialize the trace to JSON. This method should be called only by L<JSON> serializer. |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
=over |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
=item * color |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
Sets the marker color of selected points. |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
=item * opacity |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
Sets the marker opacity of selected points. |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
=item * size |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
Sets the marker size of selected points. |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
=back |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
=head1 AUTHOR |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
Pablo Rodríguez González <pablo.rodriguez.gonzalez@gmail.com> |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
This software is Copyright (c) 2022 by Pablo Rodríguez González. |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
This is free software, licensed under: |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
The MIT (X11) License |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
=cut |