Rechercher une page de manuel
Chart::Clicker::Data::Series.3pm
Langue: en
Version: 2010-05-04 (ubuntu - 24/10/10)
Section: 3 (Bibliothèques de fonctions)
Sommaire
NAME
Chart::Clicker::Data::Series - A series of key, value pairs representing chart dataDESCRIPTION
Chart::Clicker::Data::Series represents a series of values to be charted.SYNOPSIS
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 });
ATTRIBUTES
keys
Set/Get the keys for this series.name
Set/Get the name for this Seriesrange
Returns the range for this series.values
Set/Get the values for this series.METHODS
new
Creates a new, empty Seriesadd_pair ($key, $value)
Add a key and a value to the series. Internally wraps "add_to_keys" and "add_to_values".add_to_keys
Adds a key to this series.add_to_values
Add a value to this series.key_count
Get the count of keys in this series.prepare
Prepare this series. Performs various checks and calculates various things.value_count
Get the count of values in this series.AUTHOR
Cory G Watson <gphat@cpan.org>LICENSE
You can redistribute and/or modify this code under the same terms as Perl itself.Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre