line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
use Moose; |
2
|
4
|
|
|
4
|
|
25
|
use MooseX::ExtraArgs; |
|
4
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
42
|
|
3
|
4
|
|
|
4
|
|
21782
|
use Moose::Util::TypeConstraints qw(enum union); |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
26
|
|
4
|
4
|
|
|
4
|
|
6876
|
if ( !defined Moose::Util::TypeConstraints::find_type_constraint('PDL') ) { |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
32
|
|
5
|
|
|
|
|
|
|
Moose::Util::TypeConstraints::type('PDL'); |
6
|
|
|
|
|
|
|
} |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
use Chart::Plotly::Trace::Scatter::Legendgrouptitle::Font; |
9
|
4
|
|
|
4
|
|
3624
|
|
|
4
|
|
|
|
|
15
|
|
|
4
|
|
|
|
|
903
|
|
10
|
|
|
|
|
|
|
our $VERSION = '0.042'; # VERSION |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
# ABSTRACT: This attribute is one of the possible options for the trace scatter. |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
my $self = shift; |
15
|
|
|
|
|
|
|
my $extra_args = $self->extra_args // {}; |
16
|
0
|
|
|
0
|
1
|
|
my $meta = $self->meta; |
17
|
0
|
|
0
|
|
|
|
my %hash = %$self; |
18
|
0
|
|
|
|
|
|
for my $name ( sort keys %hash ) { |
19
|
0
|
|
|
|
|
|
my $attr = $meta->get_attribute($name); |
20
|
0
|
|
|
|
|
|
if ( defined $attr ) { |
21
|
0
|
|
|
|
|
|
my $value = $hash{$name}; |
22
|
0
|
0
|
|
|
|
|
my $type = $attr->type_constraint; |
23
|
0
|
|
|
|
|
|
if ( $type && $type->equals('Bool') ) { |
24
|
0
|
|
|
|
|
|
$hash{$name} = $value ? \1 : \0; |
25
|
0
|
0
|
0
|
|
|
|
} |
26
|
0
|
0
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
%hash = ( %hash, %$extra_args ); |
29
|
|
|
|
|
|
|
delete $hash{'extra_args'}; |
30
|
0
|
|
|
|
|
|
if ( $self->can('type') && ( !defined $hash{'type'} ) ) { |
31
|
0
|
|
|
|
|
|
$hash{type} = $self->type(); |
32
|
0
|
0
|
0
|
|
|
|
} |
33
|
0
|
|
|
|
|
|
return \%hash; |
34
|
|
|
|
|
|
|
} |
35
|
0
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
has font => ( is => "rw", |
37
|
|
|
|
|
|
|
isa => "Maybe[HashRef]|Chart::Plotly::Trace::Scatter::Legendgrouptitle::Font", ); |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
has text => ( is => "rw", |
40
|
|
|
|
|
|
|
isa => "Str", |
41
|
|
|
|
|
|
|
documentation => "Sets the title of the legend group.", |
42
|
|
|
|
|
|
|
); |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable(); |
45
|
|
|
|
|
|
|
1; |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=pod |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=encoding utf-8 |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 NAME |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
Chart::Plotly::Trace::Scatter::Legendgrouptitle - This attribute is one of the possible options for the trace scatter. |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head1 VERSION |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
version 0.042 |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head1 SYNOPSIS |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
use HTML::Show; |
63
|
|
|
|
|
|
|
use Chart::Plotly; |
64
|
|
|
|
|
|
|
use Chart::Plotly::Trace::Scatter; |
65
|
|
|
|
|
|
|
my $scatter = Chart::Plotly::Trace::Scatter->new( x => [ 1 .. 5 ], y => [ 1 .. 5 ] ); |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
HTML::Show::show( Chart::Plotly::render_full_html( data => [$scatter] ) ); |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=head1 DESCRIPTION |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
This attribute is part of the possible options for the trace scatter. |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
This file has been autogenerated from the official plotly.js source. |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
If you like Plotly, please support them: L<https://plot.ly/> |
76
|
|
|
|
|
|
|
Open source announcement: L<https://plot.ly/javascript/open-source-announcement/> |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
Full reference: L<https://plot.ly/javascript/reference/#scatter> |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=head1 DISCLAIMER |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
This is an unofficial Plotly Perl module. Currently I'm not affiliated in any way with Plotly. |
83
|
|
|
|
|
|
|
But I think plotly.js is a great library and I want to use it with perl. |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=head1 METHODS |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
=head2 TO_JSON |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
Serialize the trace to JSON. This method should be called only by L<JSON> serializer. |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=over |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
=item * font |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
=item * text |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
Sets the title of the legend group. |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
=back |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
=head1 AUTHOR |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
Pablo Rodríguez González <pablo.rodriguez.gonzalez@gmail.com> |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
This software is Copyright (c) 2022 by Pablo Rodríguez González. |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
This is free software, licensed under: |
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
The MIT (X11) License |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
=cut |