The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Chart::Plotly::Trace::Pie

VERSION

version 0.009

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

NAME

Chart::Plotly::Trace::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.

ATTRIBUTES

  • direction

    Specifies the direction at which succeeding sectors follow one another.

  • dlabel

    Sets the label step. See `label0` for more info.

  • domain

  • hole

    Sets the fraction of the radius to cut out of the pie. Use this to make a donut chart.

  • 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.

  • insidetextfont

    Sets the font used for `textinfo` lying inside the pie.

  • label0

    Alternate to `labels`. Builds a numeric set of labels. Use with `dlabel` where `label0` is the starting label and `dlabel` the step.

  • labels

    Sets the sector labels.

  • marker

  • outsidetextfont

    Sets the font used for `textinfo` lying outside the pie.

  • 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.

  • rotation

    Instead of the first slice starting at 12 o'clock, rotate to some other angle.

  • 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.

  • sort

    Determines whether or not the sectors of reordered from largest to smallest.

  • text

    Sets text elements associated with each sector.

  • textfont

    Sets the font used for `textinfo`.

  • textinfo

    Determines which trace information appear on the graph.

  • textposition

    Specifies the location of the `textinfo`.

  • values

    Sets the values of the sectors of this pie chart.

  • name

    Sets the trace name

type

Trace type.

AUTHOR

Pablo Rodríguez González <pablo.rodriguez.gonzalez@gmail.com>

COPYRIGHT AND LICENSE

Copyright (c) 2016 by Pablo Rodríguez González.

This is free software, licensed under:

  The MIT (X11) License