Chart:...DataSet(3pm)
π Chart::...DataSet(3pm) π
okay bestie, buckle up β this is Chart::Clicker::Data::DataSet, a whole manual page for the Perl module that holds your series together. it lives in the Chart:...DataSet(3pm) corner of the docs and it's genuinely so useful once it clicks. π
β¨ NAME β¨
Chart::Clicker::Data::DataSet β a collection of series. that's it, that's the vibe. π
πΈ VERSION πΈ
version 2.90 β yes, she's grown up. π¦
π§ SYNOPSIS π§
here's the whole thing in action, no cap:
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 => \@keys,
values => \@vals
});
my $ds = Chart::Clicker::Data::DataSet->new({
series => [ $series ]
});
like. look at her go. β¨
π DESCRIPTION π
Chart::Clicker::Data::DataSet is, lowkey, just a set of Series that got grouped together for some logical reason or another. that's the whole gig. π«Ά
DatasSets can be associated with Renderers in the Chart. and unless you're out here doing something fancy like that, you genuinely have no reason to use more than one in your chart. not me telling you to keep it simple bestie π
β max_key_count β
get the number of keys in the longest series. this will be set automatically, so don't stress about it β she handles herself. π
π₯ ATTRIBUTES π₯
π context
set/get the context this DataSet will be charted under.
πΈ domain
get the Range for the domain values.
π range
get the Range for the... range values... yeah. the naming committee was clearly going through it that day. π€‘
π¦ series
set/get the series for this DataSet.
π METHODS π
π add_to_series
add a series to this dataset. simple as that. obsessed.
π count
get the number of series in this dataset.
β get_series ($index)
get the series at the specified index. you give her a position, she gives you the series.
π get_all_series_keys
returns an array of keys representing the union of all keys from all DataSets. the full merge, the entire friend group. π
π§ get_series_keys
returns the key at the specified position for every series in this DataSet.
π get_series_values
returns the value at the specified position for every series in this DataSet as an ArrayRef.
π get_series_values_for_key
returns the value for the specified key for every series in this DataSet as an ArrayRef.
π₯ largest_value_slice
finds the largest cumulative 'slice' in this dataset. main character detect: successful.
π AUTHOR π
Cory G Watson <gphat@cpan.org> β the legend behind all of this. π«Ά
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2016 by Cory G Watson.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. slay, and legally so. π
and that's the whole page bestie! this was perl v5.36.0, dated 2022-10-14, straight from Chart:...DataSet(3pm) β read it, love it, go make some charts. periodt. π
β¨π¦
π¦ where this page comes from
- ubuntu noble: libchart-clicker-perl 2.90-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libchart-clicker-perl 2.90-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libchart-clicker-perl 2.90-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms