Chart-Plotly
view release on metacpan or search on metacpan
lib/Chart/Plotly/Trace/Scatter3d.pm view on Meta::CPAN
"bottom center",
"bottom right"
]
),
"ArrayRef"
]
),
documentation => "Sets the positions of the `text` elements with respects to the (x,y) coordinates.",
);
has textpositionsrc => ( is => "rw",
isa => "Str",
documentation => "Sets the source reference on Chart Studio Cloud for `textposition`.",
);
has textsrc => ( is => "rw",
isa => "Str",
documentation => "Sets the source reference on Chart Studio Cloud for `text`.",
);
has texttemplate => (
is => "rw",
isa => "Str|ArrayRef[Str]",
documentation =>
"Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example \"y: %{y}\". Numbers are formatted using d3-format's syntax %{variabl...
);
has texttemplatesrc => ( is => "rw",
isa => "Str",
documentation => "Sets the source reference on Chart Studio Cloud for `texttemplate`.",
);
has transforms => ( is => "rw",
isa => "ArrayRef|ArrayRef[Chart::Plotly::Trace::Scatter3d::Transform]", );
has uid => (
is => "rw",
isa => "Str",
documentation =>
"Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions.",
);
has uirevision => (
is => "rw",
isa => "Any",
documentation =>
"Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-d...
);
has visible => (
is => "rw",
documentation =>
"Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible).",
);
has x => ( is => "rw",
isa => "ArrayRef|PDL",
documentation => "Sets the x coordinates.",
);
has xcalendar => ( is => "rw",
isa => enum(
[ "chinese", "coptic", "discworld", "ethiopian", "gregorian", "hebrew", "islamic", "jalali",
"julian", "mayan", "nanakshahi", "nepali", "persian", "taiwan", "thai", "ummalqura"
]
),
documentation => "Sets the calendar system to use with `x` date data.",
);
has xhoverformat => (
is => "rw",
isa => "Str",
documentation =>
"Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time...
);
has xsrc => ( is => "rw",
isa => "Str",
documentation => "Sets the source reference on Chart Studio Cloud for `x`.",
);
has y => ( is => "rw",
isa => "ArrayRef|PDL",
documentation => "Sets the y coordinates.",
);
has ycalendar => ( is => "rw",
isa => enum(
[ "chinese", "coptic", "discworld", "ethiopian", "gregorian", "hebrew", "islamic", "jalali",
"julian", "mayan", "nanakshahi", "nepali", "persian", "taiwan", "thai", "ummalqura"
]
),
documentation => "Sets the calendar system to use with `y` date data.",
);
has yhoverformat => (
is => "rw",
isa => "Str",
documentation =>
"Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time...
);
has ysrc => ( is => "rw",
isa => "Str",
documentation => "Sets the source reference on Chart Studio Cloud for `y`.",
);
has z => ( is => "rw",
isa => "ArrayRef|PDL",
documentation => "Sets the z coordinates.",
);
has zcalendar => ( is => "rw",
isa => enum(
[ "chinese", "coptic", "discworld", "ethiopian", "gregorian", "hebrew", "islamic", "jalali",
"julian", "mayan", "nanakshahi", "nepali", "persian", "taiwan", "thai", "ummalqura"
]
),
documentation => "Sets the calendar system to use with `z` date data.",
);
has zhoverformat => (
is => "rw",
isa => "Str",
documentation =>
"Sets the hover text formatting rulefor `z` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time...
);
has zsrc => ( is => "rw",
isa => "Str",
documentation => "Sets the source reference on Chart Studio Cloud for `z`.",
);
__PACKAGE__->meta->make_immutable();
1;
__END__
=pod
=encoding utf-8
=head1 NAME
Chart::Plotly::Trace::Scatter3d - The data visualized as scatter point or lines in 3D dimension is set in `x`, `y`, `z`. Text (appearing either on the chart or on hover only) is via `text`. Bubble charts are achieved by setting `marker.size` and/or `...
=head1 VERSION
version 0.042
=head1 SYNOPSIS
use Chart::Plotly qw(show_plot);
use Chart::Plotly::Trace::Scatter3d;
use English qw(-no_match_vars);
use Const::Fast;
const my $PI => 4 * atan2( 1, 1 );
const my $DELTA => 0.1;
my ( @x, @y, @z );
for ( my $u = 0; $u <= 2 * $PI; $u += $DELTA ) {
for ( my $v = -1; $v < 1; $v += $DELTA ) {
push @x, ( 1 + ( $v / 2 ) * cos( $u / 2 ) ) * cos($u);
push @y, ( 1 + ( $v / 2 ) * cos( $u / 2 ) ) * sin($u);
push @z, ( $v / 2 ) * sin( $u / 2 );
}
}
my $scatter3d = Chart::Plotly::Trace::Scatter3d->new( x => \@x, y => \@y, z => \@z, mode => 'lines' );
show_plot( [$scatter3d] );
=head1 DESCRIPTION
The data visualized as scatter point or lines in 3D dimension is set in `x`, `y`, `z`. Text (appearing either on the chart or on hover only) is via `text`. Bubble charts are achieved by setting `marker.size` and/or `marker.color` Projections are achi...
Screenshot of the above example:
=for HTML <p>
<img src="https://raw.githubusercontent.com/pablrod/p5-Chart-Plotly/master/examples/traces/scatter3d.png" alt="Screenshot of the above example">
lib/Chart/Plotly/Trace/Scatter3d.pm view on Meta::CPAN
Sets a reference between this trace's 3D coordinate system and a 3D scene. If *scene* (the default value), the (x,y,z) coordinates refer to `layout.scene`. If *scene2*, the (x,y,z) coordinates refer to `layout.scene2`, and so on.
=item * showlegend
Determines whether or not an item corresponding to this trace is shown in the legend.
=item * stream
=item * surfaceaxis
If *-1*, the scatter points are not fill with a surface If *0*, *1*, *2*, the scatter points are filled with a Delaunay surface about the x, y, z respectively.
=item * surfacecolor
Sets the surface fill color.
=item * text
Sets text elements associated with each (x,y,z) triplet. If a single string, the same string appears over all the data points. If an array of string, the items are mapped in order to the this trace's (x,y,z) coordinates. If trace `hoverinfo` contains...
=item * textfont
=item * textposition
Sets the positions of the `text` elements with respects to the (x,y) coordinates.
=item * textpositionsrc
Sets the source reference on Chart Studio Cloud for `textposition`.
=item * textsrc
Sets the source reference on Chart Studio Cloud for `text`.
=item * texttemplate
Template string used for rendering the information text that appear on points. Note that this will override `textinfo`. Variables are inserted using %{variable}, for example "y: %{y}". Numbers are formatted using d3-format's syntax %{variable:d3-form...
=item * texttemplatesrc
Sets the source reference on Chart Studio Cloud for `texttemplate`.
=item * transforms
=item * uid
Assign an id to this trace, Use this to provide object constancy between traces during animations and transitions.
=item * uirevision
Controls persistence of some user-driven changes to the trace: `constraintrange` in `parcoords` traces, as well as some `editable: true` modifications such as `name` and `colorbar.title`. Defaults to `layout.uirevision`. Note that other user-driven t...
=item * visible
Determines whether or not this trace is visible. If *legendonly*, the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible).
=item * x
Sets the x coordinates.
=item * xcalendar
Sets the calendar system to use with `x` date data.
=item * xhoverformat
Sets the hover text formatting rulefor `x` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format...
=item * xsrc
Sets the source reference on Chart Studio Cloud for `x`.
=item * y
Sets the y coordinates.
=item * ycalendar
Sets the calendar system to use with `y` date data.
=item * yhoverformat
Sets the hover text formatting rulefor `y` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format...
=item * ysrc
Sets the source reference on Chart Studio Cloud for `y`.
=item * z
Sets the z coordinates.
=item * zcalendar
Sets the calendar system to use with `z` date data.
=item * zhoverformat
Sets the hover text formatting rulefor `z` using d3 formatting mini-languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-format/tree/v1.4.5#d3-format. And for dates see: https://github.com/d3/d3-time-format...
=item * zsrc
Sets the source reference on Chart Studio Cloud for `z`.
=back
=head1 AUTHOR
Pablo RodrÃguez González <pablo.rodriguez.gonzalez@gmail.com>
=head1 COPYRIGHT AND LICENSE
This software is Copyright (c) 2022 by Pablo RodrÃguez González.
This is free software, licensed under:
The MIT (X11) License
=cut
( run in 0.817 second using v1.01-cache-2.11-cpan-39bf76dae61 )