Chart::Clicker::Data::Series - A series of key, value pairs representing chart data
Chart::Clicker::Data::Series represents a series of values to be charted.
use Chart::Clicker::Data::Series; my @keys = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10); my @values = (42, 25, 86, 23, 2, 19, 103, 12, 54, 9); my $series = Chart::Clicker::Data::Series->new({ keys => \@keys, value => \@values }); # Alternately, if you prefer my $series = Chart::Clicker::Data::Series->new({ 1 => 42, 2 => 25, 3 => 85, 4 => 23, 5 => 2, 6 => 19, 7 => 102, 8 => 12, 9 => 54, 10 => 9 });
Set/Get the keys for this series.
Set/Get the name for this Series
Returns the range for this series.
Set/Get the values for this series.
Creates a new, empty Series
Add a key and a value to the series. Internally wraps add_to_keys and add_to_values.
add_to_keys
add_to_values
Adds a key to this series.
Add a value to this series.
Get the count of keys in this series.
Prepare this series. Performs various checks and calculates various things.
Get the count of values in this series.
Cory G Watson <gphat@cpan.org>
You can redistribute and/or modify this code under the same terms as Perl itself.
To install Chart::Clicker, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Chart::Clicker
CPAN shell
perl -MCPAN -e shell install Chart::Clicker
For more information on module installation, please visit the detailed CPAN module installation guide.