NAME
Chart::Plotly::Trace::Pie
SYNOPSIS
use HTML::Show;
use Chart::Plotly;
use Chart::Plotly::Trace::Pie;
my $pie = Chart::Plotly::Trace::Pie->new(x => [1 .. 5], y => [1 .. 5]);
HTML::Show::show(Chart::Plotly::render_full_html(data => [$pie]));
DESCRIPTION
This file has been autogenerated from the official plotly.js source.
If you like Plotly, please support them: https://plot.ly/ Open source announcement: https://plot.ly/javascript/open-source-announcement/
Full reference: https://plot.ly/javascript/reference/#pie
DISCLAIMER
This is an unofficial Plotly Perl module. Currently I'm not affiliated in any way with Plotly. But I think plotly.js is a great library and I want to use it with perl.
METHODS
TO_JSON
Serialize the trace to JSON. This method should be called only by JSON serializer.
type
Trace type.
ATTRIBUTES
dlabel
Sets the label step. See `label0` for more info.
labels
Sets the sector labels.
hoverinfo
Determines which trace information appear on hover. If `none` or `skip` are set, no information is displayed upon hovering. But, if `none` is set, click and hover events are still fired.
hole
Sets the fraction of the radius to cut out of the pie. Use this to make a donut chart.
scalegroup
If there are multiple pies that should be sized according to their totals, link them by providing a non-empty group id here shared by every trace in the same group.
textfont
Sets the font used for `textinfo`.
textinfo
Determines which trace information appear on the graph.
values
Sets the values of the sectors of this pie chart.
marker
label0
Alternate to `labels`. Builds a numeric set of labels. Use with `dlabel` where `label0` is the starting label and `dlabel` the step.
rotation
Instead of the first slice starting at 12 o'clock, rotate to some other angle.
text
Sets text elements associated with each sector.
insidetextfont
Sets the font used for `textinfo` lying inside the pie.
sort
Determines whether or not the sectors of reordered from largest to smallest.
domain
pull
Sets the fraction of larger radius to pull the sectors out from the center. This can be a constant to pull all slices apart from each other equally or an array to highlight one or more slices.
outsidetextfont
Sets the font used for `textinfo` lying outside the pie.
direction
Specifies the direction at which succeeding sectors follow one another.
textposition
Specifies the location of the `textinfo`.