view release on metacpan or search on metacpan
examples/traces/barpolar.html view on Meta::CPAN
<!DOCTYPE html>
<head>
<meta charset="utf-8" />
</head>
<body>
<div id="e99afd0c-1c93-11ed-b0d6-9c48ec801754"></div>
<script src="https://cdn.plot.ly/plotly-2.14.0.min.js"></script>
<script>
Plotly.react(document.getElementById('e99afd0c-1c93-11ed-b0d6-9c48ec801754'),[{"name":"11-14 m/s","r":[77.5,72.5,70,45,22.5,42.5,40,62.5],"type":"barpolar","t":["North","N-E","East","S-E","South","S-W","West","N-W"],"marker":{"color":"rgb(106,81,163)...
</script>
</body>
</html>
examples/traces/barpolar.pl view on Meta::CPAN
};
my $plot = Chart::Plotly::Plot->new(
traces => [ $trace1, $trace2, $trace3, $trace4 ],
layout => {
title => 'Wind Speed Distribution in Laurel, NE',
font => { size => 16 },
legend => { font => { size => 16 } },
polar => {
radialaxis => { ticksuffix => '%', angle => 45, dtick => 20 },
barmode => "overlay",
angularaxis => { direction => "clockwise" },
bargap => 0
}
}
);
Chart::Plotly::show_plot($plot);
examples/traces/funnel.html view on Meta::CPAN
<!DOCTYPE html>
<head>
<meta charset="utf-8" />
</head>
<body>
<div id="a3a37ca6-1c94-11ed-966c-d6aafc964a12"></div>
<script src="https://cdn.plot.ly/plotly-2.14.0.min.js"></script>
<script>
Plotly.react(document.getElementById('a3a37ca6-1c94-11ed-966c-d6aafc964a12'),[{"orientation":"v","name":"Orange Juice","marker":{"color":"rgb(255, 102, 97)"},"y":[13.23,22.7,26.06],"x":["Half Dose","Full Dose","Double Dose"],"type":"funnel"},{"type":...
</script>
</body>
</html>
examples/traces/funnel.pl view on Meta::CPAN
my $trace2 = Chart::Plotly::Trace::Funnel->new({'name' => 'Vitamin C', 'marker' => {'color' => 'rgb(0, 196, 200)', }, 'y' => [7.98, 16.77, 26.14, ], 'x' => ['Half Dose', 'Full Dose', 'Double Dose', ], 'orientation' => 'v', });
my $trace3 = Chart::Plotly::Trace::Funnel->new({'name' => 'Std Dev - OJ', 'x' => ['Half Dose', 'Full Dose', 'Double Dose', ], 'y' => [1.4102837, 1.236752, 0.8396031, ], 'visible' => JSON::false, 'orientation' => 'v', });
my $trace4 = Chart::Plotly::Trace::Funnel->new({'y' => [0.868562, 0.7954104, 1.5171757, ], 'x' => ['Half Dose', 'Full Dose', 'Double Dose', ], 'name' => 'Std Dev - VC', 'orientation' => 'v', 'visible' => JSON::false, });
my $plot = Chart::Plotly::Plot->new(
traces => [$trace1, $trace2, $trace3, $trace4, ],
layout =>
{'autosize' => JSON::false, 'hidesources' => JSON::false, 'plot_bgcolor' => 'rgb(217, 217, 217)', 'font' => {'color' => '#000', 'size' => 12, 'family' => 'Arial, sans-serif', }, 'width' => 600, 'separators' => '.,', 'legend' => {'xanchor' => ...
);
Chart::Plotly::show_plot($plot);
lib/Chart/Plotly/Trace/Bar.pm view on Meta::CPAN
is => "rw",
isa => "Str",
documentation =>
"Set several traces linked to the same position axis or matching axes to the same alignmentgroup. This controls whether bars compute their positional range dependently or independently.",
);
has base => (
is => "rw",
isa => "Any|ArrayRef[Any]",
documentation =>
"Sets where the bar base is drawn (in position axis units). In *stack* or *relative* barmode, traces that set *base* will be excluded and drawn in *overlay* mode instead.",
);
has basesrc => ( is => "rw",
isa => "Str",
documentation => "Sets the source reference on Chart Studio Cloud for `base`.",
);
has cliponaxis => (
is => "rw",
isa => "Bool",
lib/Chart/Plotly/Trace/Bar.pm view on Meta::CPAN
has name => ( is => "rw",
isa => "Str",
documentation => "Sets the trace name. The trace name appear as the legend item and on hover.",
);
has offset => (
is => "rw",
isa => "Num|ArrayRef[Num]",
documentation =>
"Shifts the position where the bar is drawn (in position axis units). In *group* barmode, traces that set *offset* will be excluded and drawn in *overlay* mode instead.",
);
has offsetgroup => (
is => "rw",
isa => "Str",
documentation =>
"Set several traces linked to the same position axis or matching axes to the same offsetgroup where bars of the same position coordinate will line up.",
);
has offsetsrc => ( is => "rw",
lib/Chart/Plotly/Trace/Bar.pm view on Meta::CPAN
=head1 ATTRIBUTES
=over
=item * alignmentgroup
Set several traces linked to the same position axis or matching axes to the same alignmentgroup. This controls whether bars compute their positional range dependently or independently.
=item * base
Sets where the bar base is drawn (in position axis units). In *stack* or *relative* barmode, traces that set *base* will be excluded and drawn in *overlay* mode instead.
=item * basesrc
Sets the source reference on Chart Studio Cloud for `base`.
=item * cliponaxis
Determines whether the text nodes are clipped about the subplot axes. To show the text nodes above axis lines and tick labels, make sure to set `xaxis.layer` and `yaxis.layer` to *below traces*.
=item * constraintext
lib/Chart/Plotly/Trace/Bar.pm view on Meta::CPAN
=item * metasrc
Sets the source reference on Chart Studio Cloud for `meta`.
=item * name
Sets the trace name. The trace name appear as the legend item and on hover.
=item * offset
Shifts the position where the bar is drawn (in position axis units). In *group* barmode, traces that set *offset* will be excluded and drawn in *overlay* mode instead.
=item * offsetgroup
Set several traces linked to the same position axis or matching axes to the same offsetgroup where bars of the same position coordinate will line up.
=item * offsetsrc
Sets the source reference on Chart Studio Cloud for `offset`.
=item * opacity
lib/Chart/Plotly/Trace/Bar/Marker/Pattern.pm view on Meta::CPAN
if ( $self->can('type') && ( !defined $hash{'type'} ) ) {
$hash{type} = $self->type();
}
return \%hash;
}
has bgcolor => (
is => "rw",
isa => "Str|ArrayRef[Str]",
documentation =>
"When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background.",
);
has bgcolorsrc => ( is => "rw",
isa => "Str",
documentation => "Sets the source reference on Chart Studio Cloud for `bgcolor`.",
);
has description => ( is => "ro",
default => "Sets the pattern within the marker.", );
lib/Chart/Plotly/Trace/Bar/Marker/Pattern.pm view on Meta::CPAN
has fgcolorsrc => ( is => "rw",
isa => "Str",
documentation => "Sets the source reference on Chart Studio Cloud for `fgcolor`.",
);
has fgopacity => (
is => "rw",
isa => "Num",
documentation =>
"Sets the opacity of the foreground pattern fill. Defaults to a 0.5 when `fillmode` is *overlay*. Otherwise, defaults to 1.",
);
has fillmode => (
is => "rw",
isa => enum( [ "replace", "overlay" ] ),
documentation => "Determines whether `marker.color` should be used as a default to `bgcolor` or a `fgcolor`.",
);
has shape => (
is => "rw",
isa => union( [ enum( [ "", "/", "\\", "x", "-", "|", "+", "." ] ), "ArrayRef" ] ),
documentation => "Sets the shape of the pattern fill. By default, no pattern is used for filling the area.",
);
has shapesrc => ( is => "rw",
lib/Chart/Plotly/Trace/Bar/Marker/Pattern.pm view on Meta::CPAN
=head2 TO_JSON
Serialize the trace to JSON. This method should be called only by L<JSON> serializer.
=head1 ATTRIBUTES
=over
=item * bgcolor
When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background.
=item * bgcolorsrc
Sets the source reference on Chart Studio Cloud for `bgcolor`.
=item * description
=item * fgcolor
When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`.
=item * fgcolorsrc
Sets the source reference on Chart Studio Cloud for `fgcolor`.
=item * fgopacity
Sets the opacity of the foreground pattern fill. Defaults to a 0.5 when `fillmode` is *overlay*. Otherwise, defaults to 1.
=item * fillmode
Determines whether `marker.color` should be used as a default to `bgcolor` or a `fgcolor`.
=item * shape
Sets the shape of the pattern fill. By default, no pattern is used for filling the area.
=item * shapesrc
lib/Chart/Plotly/Trace/Barpolar.pm view on Meta::CPAN
sub type {
my @components = split( /::/, __PACKAGE__ );
return lc( $components[-1] );
}
has base => (
is => "rw",
isa => "Any|ArrayRef[Any]",
documentation =>
"Sets where the bar base is drawn (in radial axis units). In *stack* barmode, traces that set *base* will be excluded and drawn in *overlay* mode instead.",
);
has basesrc => ( is => "rw",
isa => "Str",
documentation => "Sets the source reference on Chart Studio Cloud for `base`.",
);
has customdata => (
is => "rw",
isa => "ArrayRef|PDL",
lib/Chart/Plotly/Trace/Barpolar.pm view on Meta::CPAN
};
my $plot = Chart::Plotly::Plot->new(
traces => [ $trace1, $trace2, $trace3, $trace4 ],
layout => {
title => 'Wind Speed Distribution in Laurel, NE',
font => { size => 16 },
legend => { font => { size => 16 } },
polar => {
radialaxis => { ticksuffix => '%', angle => 45, dtick => 20 },
barmode => "overlay",
angularaxis => { direction => "clockwise" },
bargap => 0
}
}
);
Chart::Plotly::show_plot($plot);
=head1 DESCRIPTION
lib/Chart/Plotly/Trace/Barpolar.pm view on Meta::CPAN
=head2 type
Trace type.
=head1 ATTRIBUTES
=over
=item * base
Sets where the bar base is drawn (in radial axis units). In *stack* barmode, traces that set *base* will be excluded and drawn in *overlay* mode instead.
=item * basesrc
Sets the source reference on Chart Studio Cloud for `base`.
=item * customdata
Assigns extra data each datum. This may be useful when listening to hover, click and selection events. Note that, *scatter* traces also appends customdata items in the markers DOM elements
=item * customdatasrc
lib/Chart/Plotly/Trace/Barpolar/Hoverlabel.pm view on Meta::CPAN
};
my $plot = Chart::Plotly::Plot->new(
traces => [ $trace1, $trace2, $trace3, $trace4 ],
layout => {
title => 'Wind Speed Distribution in Laurel, NE',
font => { size => 16 },
legend => { font => { size => 16 } },
polar => {
radialaxis => { ticksuffix => '%', angle => 45, dtick => 20 },
barmode => "overlay",
angularaxis => { direction => "clockwise" },
bargap => 0
}
}
);
Chart::Plotly::show_plot($plot);
=head1 DESCRIPTION
lib/Chart/Plotly/Trace/Barpolar/Hoverlabel/Font.pm view on Meta::CPAN
};
my $plot = Chart::Plotly::Plot->new(
traces => [ $trace1, $trace2, $trace3, $trace4 ],
layout => {
title => 'Wind Speed Distribution in Laurel, NE',
font => { size => 16 },
legend => { font => { size => 16 } },
polar => {
radialaxis => { ticksuffix => '%', angle => 45, dtick => 20 },
barmode => "overlay",
angularaxis => { direction => "clockwise" },
bargap => 0
}
}
);
Chart::Plotly::show_plot($plot);
=head1 DESCRIPTION
lib/Chart/Plotly/Trace/Barpolar/Legendgrouptitle.pm view on Meta::CPAN
};
my $plot = Chart::Plotly::Plot->new(
traces => [ $trace1, $trace2, $trace3, $trace4 ],
layout => {
title => 'Wind Speed Distribution in Laurel, NE',
font => { size => 16 },
legend => { font => { size => 16 } },
polar => {
radialaxis => { ticksuffix => '%', angle => 45, dtick => 20 },
barmode => "overlay",
angularaxis => { direction => "clockwise" },
bargap => 0
}
}
);
Chart::Plotly::show_plot($plot);
=head1 DESCRIPTION
lib/Chart/Plotly/Trace/Barpolar/Legendgrouptitle/Font.pm view on Meta::CPAN
};
my $plot = Chart::Plotly::Plot->new(
traces => [ $trace1, $trace2, $trace3, $trace4 ],
layout => {
title => 'Wind Speed Distribution in Laurel, NE',
font => { size => 16 },
legend => { font => { size => 16 } },
polar => {
radialaxis => { ticksuffix => '%', angle => 45, dtick => 20 },
barmode => "overlay",
angularaxis => { direction => "clockwise" },
bargap => 0
}
}
);
Chart::Plotly::show_plot($plot);
=head1 DESCRIPTION
lib/Chart/Plotly/Trace/Barpolar/Marker.pm view on Meta::CPAN
};
my $plot = Chart::Plotly::Plot->new(
traces => [ $trace1, $trace2, $trace3, $trace4 ],
layout => {
title => 'Wind Speed Distribution in Laurel, NE',
font => { size => 16 },
legend => { font => { size => 16 } },
polar => {
radialaxis => { ticksuffix => '%', angle => 45, dtick => 20 },
barmode => "overlay",
angularaxis => { direction => "clockwise" },
bargap => 0
}
}
);
Chart::Plotly::show_plot($plot);
=head1 DESCRIPTION
lib/Chart/Plotly/Trace/Barpolar/Marker/Colorbar.pm view on Meta::CPAN
};
my $plot = Chart::Plotly::Plot->new(
traces => [ $trace1, $trace2, $trace3, $trace4 ],
layout => {
title => 'Wind Speed Distribution in Laurel, NE',
font => { size => 16 },
legend => { font => { size => 16 } },
polar => {
radialaxis => { ticksuffix => '%', angle => 45, dtick => 20 },
barmode => "overlay",
angularaxis => { direction => "clockwise" },
bargap => 0
}
}
);
Chart::Plotly::show_plot($plot);
=head1 DESCRIPTION
lib/Chart/Plotly/Trace/Barpolar/Marker/Colorbar/Tickfont.pm view on Meta::CPAN
};
my $plot = Chart::Plotly::Plot->new(
traces => [ $trace1, $trace2, $trace3, $trace4 ],
layout => {
title => 'Wind Speed Distribution in Laurel, NE',
font => { size => 16 },
legend => { font => { size => 16 } },
polar => {
radialaxis => { ticksuffix => '%', angle => 45, dtick => 20 },
barmode => "overlay",
angularaxis => { direction => "clockwise" },
bargap => 0
}
}
);
Chart::Plotly::show_plot($plot);
=head1 DESCRIPTION
lib/Chart/Plotly/Trace/Barpolar/Marker/Colorbar/Tickformatstop.pm view on Meta::CPAN
};
my $plot = Chart::Plotly::Plot->new(
traces => [ $trace1, $trace2, $trace3, $trace4 ],
layout => {
title => 'Wind Speed Distribution in Laurel, NE',
font => { size => 16 },
legend => { font => { size => 16 } },
polar => {
radialaxis => { ticksuffix => '%', angle => 45, dtick => 20 },
barmode => "overlay",
angularaxis => { direction => "clockwise" },
bargap => 0
}
}
);
Chart::Plotly::show_plot($plot);
=head1 DESCRIPTION
lib/Chart/Plotly/Trace/Barpolar/Marker/Colorbar/Title.pm view on Meta::CPAN
};
my $plot = Chart::Plotly::Plot->new(
traces => [ $trace1, $trace2, $trace3, $trace4 ],
layout => {
title => 'Wind Speed Distribution in Laurel, NE',
font => { size => 16 },
legend => { font => { size => 16 } },
polar => {
radialaxis => { ticksuffix => '%', angle => 45, dtick => 20 },
barmode => "overlay",
angularaxis => { direction => "clockwise" },
bargap => 0
}
}
);
Chart::Plotly::show_plot($plot);
=head1 DESCRIPTION
lib/Chart/Plotly/Trace/Barpolar/Marker/Colorbar/Title/Font.pm view on Meta::CPAN
};
my $plot = Chart::Plotly::Plot->new(
traces => [ $trace1, $trace2, $trace3, $trace4 ],
layout => {
title => 'Wind Speed Distribution in Laurel, NE',
font => { size => 16 },
legend => { font => { size => 16 } },
polar => {
radialaxis => { ticksuffix => '%', angle => 45, dtick => 20 },
barmode => "overlay",
angularaxis => { direction => "clockwise" },
bargap => 0
}
}
);
Chart::Plotly::show_plot($plot);
=head1 DESCRIPTION
lib/Chart/Plotly/Trace/Barpolar/Marker/Colorbar/Titlefont.pm view on Meta::CPAN
};
my $plot = Chart::Plotly::Plot->new(
traces => [ $trace1, $trace2, $trace3, $trace4 ],
layout => {
title => 'Wind Speed Distribution in Laurel, NE',
font => { size => 16 },
legend => { font => { size => 16 } },
polar => {
radialaxis => { ticksuffix => '%', angle => 45, dtick => 20 },
barmode => "overlay",
angularaxis => { direction => "clockwise" },
bargap => 0
}
}
);
Chart::Plotly::show_plot($plot);
=head1 DESCRIPTION
lib/Chart/Plotly/Trace/Barpolar/Marker/Line.pm view on Meta::CPAN
};
my $plot = Chart::Plotly::Plot->new(
traces => [ $trace1, $trace2, $trace3, $trace4 ],
layout => {
title => 'Wind Speed Distribution in Laurel, NE',
font => { size => 16 },
legend => { font => { size => 16 } },
polar => {
radialaxis => { ticksuffix => '%', angle => 45, dtick => 20 },
barmode => "overlay",
angularaxis => { direction => "clockwise" },
bargap => 0
}
}
);
Chart::Plotly::show_plot($plot);
=head1 DESCRIPTION
lib/Chart/Plotly/Trace/Barpolar/Marker/Pattern.pm view on Meta::CPAN
if ( $self->can('type') && ( !defined $hash{'type'} ) ) {
$hash{type} = $self->type();
}
return \%hash;
}
has bgcolor => (
is => "rw",
isa => "Str|ArrayRef[Str]",
documentation =>
"When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background.",
);
has bgcolorsrc => ( is => "rw",
isa => "Str",
documentation => "Sets the source reference on Chart Studio Cloud for `bgcolor`.",
);
has description => ( is => "ro",
default => "Sets the pattern within the marker.", );
lib/Chart/Plotly/Trace/Barpolar/Marker/Pattern.pm view on Meta::CPAN
has fgcolorsrc => ( is => "rw",
isa => "Str",
documentation => "Sets the source reference on Chart Studio Cloud for `fgcolor`.",
);
has fgopacity => (
is => "rw",
isa => "Num",
documentation =>
"Sets the opacity of the foreground pattern fill. Defaults to a 0.5 when `fillmode` is *overlay*. Otherwise, defaults to 1.",
);
has fillmode => (
is => "rw",
isa => enum( [ "replace", "overlay" ] ),
documentation => "Determines whether `marker.color` should be used as a default to `bgcolor` or a `fgcolor`.",
);
has shape => (
is => "rw",
isa => union( [ enum( [ "", "/", "\\", "x", "-", "|", "+", "." ] ), "ArrayRef" ] ),
documentation => "Sets the shape of the pattern fill. By default, no pattern is used for filling the area.",
);
has shapesrc => ( is => "rw",
lib/Chart/Plotly/Trace/Barpolar/Marker/Pattern.pm view on Meta::CPAN
};
my $plot = Chart::Plotly::Plot->new(
traces => [ $trace1, $trace2, $trace3, $trace4 ],
layout => {
title => 'Wind Speed Distribution in Laurel, NE',
font => { size => 16 },
legend => { font => { size => 16 } },
polar => {
radialaxis => { ticksuffix => '%', angle => 45, dtick => 20 },
barmode => "overlay",
angularaxis => { direction => "clockwise" },
bargap => 0
}
}
);
Chart::Plotly::show_plot($plot);
=head1 DESCRIPTION
lib/Chart/Plotly/Trace/Barpolar/Marker/Pattern.pm view on Meta::CPAN
=head2 TO_JSON
Serialize the trace to JSON. This method should be called only by L<JSON> serializer.
=head1 ATTRIBUTES
=over
=item * bgcolor
When there is no colorscale sets the color of background pattern fill. Defaults to a `marker.color` background when `fillmode` is *overlay*. Otherwise, defaults to a transparent background.
=item * bgcolorsrc
Sets the source reference on Chart Studio Cloud for `bgcolor`.
=item * description
=item * fgcolor
When there is no colorscale sets the color of foreground pattern fill. Defaults to a `marker.color` background when `fillmode` is *replace*. Otherwise, defaults to dark grey or white to increase contrast with the `bgcolor`.
=item * fgcolorsrc
Sets the source reference on Chart Studio Cloud for `fgcolor`.
=item * fgopacity
Sets the opacity of the foreground pattern fill. Defaults to a 0.5 when `fillmode` is *overlay*. Otherwise, defaults to 1.
=item * fillmode
Determines whether `marker.color` should be used as a default to `bgcolor` or a `fgcolor`.
=item * shape
Sets the shape of the pattern fill. By default, no pattern is used for filling the area.
=item * shapesrc
lib/Chart/Plotly/Trace/Barpolar/Selected.pm view on Meta::CPAN
};
my $plot = Chart::Plotly::Plot->new(
traces => [ $trace1, $trace2, $trace3, $trace4 ],
layout => {
title => 'Wind Speed Distribution in Laurel, NE',
font => { size => 16 },
legend => { font => { size => 16 } },
polar => {
radialaxis => { ticksuffix => '%', angle => 45, dtick => 20 },
barmode => "overlay",
angularaxis => { direction => "clockwise" },
bargap => 0
}
}
);
Chart::Plotly::show_plot($plot);
=head1 DESCRIPTION
lib/Chart/Plotly/Trace/Barpolar/Selected/Marker.pm view on Meta::CPAN
};
my $plot = Chart::Plotly::Plot->new(
traces => [ $trace1, $trace2, $trace3, $trace4 ],
layout => {
title => 'Wind Speed Distribution in Laurel, NE',
font => { size => 16 },
legend => { font => { size => 16 } },
polar => {
radialaxis => { ticksuffix => '%', angle => 45, dtick => 20 },
barmode => "overlay",
angularaxis => { direction => "clockwise" },
bargap => 0
}
}
);
Chart::Plotly::show_plot($plot);
=head1 DESCRIPTION
lib/Chart/Plotly/Trace/Barpolar/Selected/Textfont.pm view on Meta::CPAN
};
my $plot = Chart::Plotly::Plot->new(
traces => [ $trace1, $trace2, $trace3, $trace4 ],
layout => {
title => 'Wind Speed Distribution in Laurel, NE',
font => { size => 16 },
legend => { font => { size => 16 } },
polar => {
radialaxis => { ticksuffix => '%', angle => 45, dtick => 20 },
barmode => "overlay",
angularaxis => { direction => "clockwise" },
bargap => 0
}
}
);
Chart::Plotly::show_plot($plot);
=head1 DESCRIPTION
lib/Chart/Plotly/Trace/Barpolar/Stream.pm view on Meta::CPAN
};
my $plot = Chart::Plotly::Plot->new(
traces => [ $trace1, $trace2, $trace3, $trace4 ],
layout => {
title => 'Wind Speed Distribution in Laurel, NE',
font => { size => 16 },
legend => { font => { size => 16 } },
polar => {
radialaxis => { ticksuffix => '%', angle => 45, dtick => 20 },
barmode => "overlay",
angularaxis => { direction => "clockwise" },
bargap => 0
}
}
);
Chart::Plotly::show_plot($plot);
=head1 DESCRIPTION
lib/Chart/Plotly/Trace/Barpolar/Transform.pm view on Meta::CPAN
};
my $plot = Chart::Plotly::Plot->new(
traces => [ $trace1, $trace2, $trace3, $trace4 ],
layout => {
title => 'Wind Speed Distribution in Laurel, NE',
font => { size => 16 },
legend => { font => { size => 16 } },
polar => {
radialaxis => { ticksuffix => '%', angle => 45, dtick => 20 },
barmode => "overlay",
angularaxis => { direction => "clockwise" },
bargap => 0
}
}
);
Chart::Plotly::show_plot($plot);
=head1 DESCRIPTION
lib/Chart/Plotly/Trace/Barpolar/Unselected.pm view on Meta::CPAN
};
my $plot = Chart::Plotly::Plot->new(
traces => [ $trace1, $trace2, $trace3, $trace4 ],
layout => {
title => 'Wind Speed Distribution in Laurel, NE',
font => { size => 16 },
legend => { font => { size => 16 } },
polar => {
radialaxis => { ticksuffix => '%', angle => 45, dtick => 20 },
barmode => "overlay",
angularaxis => { direction => "clockwise" },
bargap => 0
}
}
);
Chart::Plotly::show_plot($plot);
=head1 DESCRIPTION
lib/Chart/Plotly/Trace/Barpolar/Unselected/Marker.pm view on Meta::CPAN
};
my $plot = Chart::Plotly::Plot->new(
traces => [ $trace1, $trace2, $trace3, $trace4 ],
layout => {
title => 'Wind Speed Distribution in Laurel, NE',
font => { size => 16 },
legend => { font => { size => 16 } },
polar => {
radialaxis => { ticksuffix => '%', angle => 45, dtick => 20 },
barmode => "overlay",
angularaxis => { direction => "clockwise" },
bargap => 0
}
}
);
Chart::Plotly::show_plot($plot);
=head1 DESCRIPTION
lib/Chart/Plotly/Trace/Barpolar/Unselected/Textfont.pm view on Meta::CPAN
};
my $plot = Chart::Plotly::Plot->new(
traces => [ $trace1, $trace2, $trace3, $trace4 ],
layout => {
title => 'Wind Speed Distribution in Laurel, NE',
font => { size => 16 },
legend => { font => { size => 16 } },
polar => {
radialaxis => { ticksuffix => '%', angle => 45, dtick => 20 },
barmode => "overlay",
angularaxis => { direction => "clockwise" },
bargap => 0
}
}
);
Chart::Plotly::show_plot($plot);
=head1 DESCRIPTION
lib/Chart/Plotly/Trace/Cone.pm view on Meta::CPAN
has name => ( is => "rw",
isa => "Str",
documentation => "Sets the trace name. The trace name appear as the legend item and on hover.",
);
has opacity => (
is => "rw",
isa => "Num",
documentation =>
"Sets the opacity of the surface. Please note that in the case of using high `opacity` values for example a value greater than or equal to 0.5 on two surfaces (and 0.25 with four surfaces), an overlay of multiple transparent surfaces may not pe...
);
has reversescale => (
is => "rw",
isa => "Bool",
documentation =>
"Reverses the color mapping if true. If true, `cmin` will correspond to the last color in the array and `cmax` will correspond to the first color.",
);
has scene => (
lib/Chart/Plotly/Trace/Cone.pm view on Meta::CPAN
=item * metasrc
Sets the source reference on Chart Studio Cloud for `meta`.
=item * name
Sets the trace name. The trace name appear as the legend item and on hover.
=item * opacity
Sets the opacity of the surface. Please note that in the case of using high `opacity` values for example a value greater than or equal to 0.5 on two surfaces (and 0.25 with four surfaces), an overlay of multiple transparent surfaces may not perfectly...
=item * reversescale
Reverses the color mapping if true. If true, `cmin` will correspond to the last color in the array and `cmax` will correspond to the first color.
=item * scene
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
lib/Chart/Plotly/Trace/Funnel.pm view on Meta::CPAN
has name => ( is => "rw",
isa => "Str",
documentation => "Sets the trace name. The trace name appear as the legend item and on hover.",
);
has offset => (
is => "rw",
isa => "Num",
documentation =>
"Shifts the position where the bar is drawn (in position axis units). In *group* barmode, traces that set *offset* will be excluded and drawn in *overlay* mode instead.",
);
has offsetgroup => (
is => "rw",
isa => "Str",
documentation =>
"Set several traces linked to the same position axis or matching axes to the same offsetgroup where bars of the same position coordinate will line up.",
);
has opacity => ( is => "rw",
lib/Chart/Plotly/Trace/Funnel.pm view on Meta::CPAN
my $trace2 = Chart::Plotly::Trace::Funnel->new({'name' => 'Vitamin C', 'marker' => {'color' => 'rgb(0, 196, 200)', }, 'y' => [7.98, 16.77, 26.14, ], 'x' => ['Half Dose', 'Full Dose', 'Double Dose', ], 'orientation' => 'v', });
my $trace3 = Chart::Plotly::Trace::Funnel->new({'name' => 'Std Dev - OJ', 'x' => ['Half Dose', 'Full Dose', 'Double Dose', ], 'y' => [1.4102837, 1.236752, 0.8396031, ], 'visible' => JSON::false, 'orientation' => 'v', });
my $trace4 = Chart::Plotly::Trace::Funnel->new({'y' => [0.868562, 0.7954104, 1.5171757, ], 'x' => ['Half Dose', 'Full Dose', 'Double Dose', ], 'name' => 'Std Dev - VC', 'orientation' => 'v', 'visible' => JSON::false, });
my $plot = Chart::Plotly::Plot->new(
traces => [$trace1, $trace2, $trace3, $trace4, ],
layout =>
{'autosize' => JSON::false, 'hidesources' => JSON::false, 'plot_bgcolor' => 'rgb(217, 217, 217)', 'font' => {'color' => '#000', 'size' => 12, 'family' => 'Arial, sans-serif', }, 'width' => 600, 'separators' => '.,', 'legend' => {'xanchor' =>...
);
Chart::Plotly::show_plot($plot);
=head1 DESCRIPTION
Visualize stages in a process using length-encoded bars. This trace can be used to show data in either a part-to-whole representation wherein each item appears in a single stage, or in a "drop-off" representation wherein each item appears in each sta...
Screenshot of the above example:
lib/Chart/Plotly/Trace/Funnel.pm view on Meta::CPAN
=item * metasrc
Sets the source reference on Chart Studio Cloud for `meta`.
=item * name
Sets the trace name. The trace name appear as the legend item and on hover.
=item * offset
Shifts the position where the bar is drawn (in position axis units). In *group* barmode, traces that set *offset* will be excluded and drawn in *overlay* mode instead.
=item * offsetgroup
Set several traces linked to the same position axis or matching axes to the same offsetgroup where bars of the same position coordinate will line up.
=item * opacity
Sets the opacity of the trace.
=item * orientation