package Chart::Clicker::Data::Series::Size; use Moose; extends 'Chart::Clicker::Data::Series'; has 'sizes' => ( metaclass => 'Collection::Array', is => 'rw', isa => 'ArrayRef', default => sub { [] }, provides => { 'push' => 'add_to_sizes', 'count' => 'size_count', 'get' => 'get_size' } ); __PACKAGE__->meta->make_immutable; no Moose; 1; __END__ =head1 NAME Chart::Clicker::Data::Series::Size =head1 DESCRIPTION Chart::Clicker::Data::Series::Size is an extension of the Series class that provides storage for a third variable called the size. This is useful for the Bubble renderer. =head1 SYNOPSIS use Chart::Clicker::Data::Series::Size; my $series = Chart::Clicker::Data::Series::Size->new({ keys => \@keys, values => \@values, sizes => \@sized }); =head1 METHODS =head2 new Creates a new, empty Series::Size =head2 add_to_sizes Adds a size to this series. =head2 get_size Get a size by it's index. =head2 sizes Set/Get the sizes for this series. =head2 size_count Gets the count of sizes in this series. =head1 AUTHOR Cory G Watson =head1 LICENSE You can redistribute and/or modify this code under the same terms as Perl itself. 1;