Chart:...DataSet(3pm)

πŸ“¦
version 2.90 Β· 3 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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. 🫢


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