.\" Automatically generated by Pod::Man 4.07 (Pod::Simple 3.32) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .if !\nF .nr F 0 .if \nF>0 \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} .\} .\" ======================================================================== .\" .IX Title "Chart::Clicker::Data::DataSet 3pm" .TH Chart::Clicker::Data::DataSet 3pm "2016-12-28" "perl v5.24.1" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Chart::Clicker::Data::DataSet \- A collection of series .SH "VERSION" .IX Header "VERSION" version 2.90 .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 2 \& use Chart::Clicker::Data::DataSet; \& use Chart::Clicker::Data::Series; \& \& my @vals = (12, 19, 90, 4, 44, 3, 78, 87, 19, 5); \& my @keys = (1, 2, 3, 4, 5, 6, 7, 8, 9, 10); \& my $series = Chart::Clicker::Data::Series\->new({ \& keys => \e@keys, \& values => \e@vals \& }); \& \& my $ds = Chart::Clicker::Data::DataSet\->new({ \& series => [ $series ] \& }); .Ve .SH "DESCRIPTION" .IX Header "DESCRIPTION" Chart::Clicker::Data::DataSet is a set of Series that are grouped for some logical reason or another. DatasSets can be associated with Renderers in the Chart. Unless you are doing something fancy like that you have no reason to use more than one in your chart. .SS "max_key_count" .IX Subsection "max_key_count" Get the number of keys in the longest series. This will be set automatically. .SH "ATTRIBUTES" .IX Header "ATTRIBUTES" .SS "context" .IX Subsection "context" Set/Get the context this DataSet will be charted under. .SS "domain" .IX Subsection "domain" Get the Range for the domain values .SS "range" .IX Subsection "range" Get the Range for the... range values... .SS "series" .IX Subsection "series" Set/Get the series for this DataSet .SH "METHODS" .IX Header "METHODS" .SS "add_to_series" .IX Subsection "add_to_series" Add a series to this dataset. .SS "count" .IX Subsection "count" Get the number of series in this dataset. .SS "get_series ($index)" .IX Subsection "get_series ($index)" Get the series at the specified index. .SS "get_all_series_keys" .IX Subsection "get_all_series_keys" Returns an array of keys representing the union of all keys from all DataSets. .SS "get_series_keys" .IX Subsection "get_series_keys" Returns the key at the specified position for every series in this DataSet. .SS "get_series_values" .IX Subsection "get_series_values" Returns the value at the specified position for every series in this DataSet as an ArrayRef. .SS "get_series_values_for_key" .IX Subsection "get_series_values_for_key" Returns the value for the specified key for every series in this DataSet as an ArrayRef. .SS "largest_value_slice" .IX Subsection "largest_value_slice" Finds the largest cumulative 'slice' in this dataset. .SH "AUTHOR" .IX Header "AUTHOR" Cory G Watson .SH "COPYRIGHT AND LICENSE" .IX Header "COPYRIGHT AND LICENSE" This software is copyright (c) 2016 by Cory G Watson. .PP This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.