Chart:...Context(3pm)

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

πŸ’– Chart::...Context(3pm) πŸ’–

okay bestie, so this is Chart::Clicker::Context β€” from the User Contributed Perl Documentation, section 3pm β€” and she is literally the rendering context: Axes, Markers and a Renderer. that's the whole name, no cap.

✨ VERSION ✨

version 2.90 β€” yes queen, we're on 2.90 πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

here's the vibe, copy it exactly bestie:

my $clicker = Chart::Clicker->new;

my $context = Chart::Clicker::Context->new(
  name => 'Foo'
);

$clicker->add_to_contexts('foo', $context);

πŸ’… DESCRIPTION πŸ’…

okay so, a Context represents the way a dataset should be charted. periodt. πŸ’…

and the way that you can have multiple contexts is what lets a chart have multiple renderers and axes. obsessed. 🌈

for the full lore, go look at the CONTEXTS section in Chart::Clicker. iykyk πŸ’œ

🌸 renderer

Set/get this context's renderer. that's it, that's the whole thing πŸŽ€

πŸ‘‘ ATTRIBUTES πŸ‘‘

🧚 domain_axis

Set/get this context's domain Axis. slay.

πŸ“ markers

an arrayref of Chart::Clicker::Data::Markers for this context. literally a lil collection of markers, so cute 🌸

⭐ name

Set/get this context's name. every context needs a name bestie, main character energy ✨

🌈 range_axis

Set/get this context's range Axis. iconic.


πŸ”₯ METHODS πŸ”₯

πŸ’– add_marker

add a marker to this context 🫢

πŸ’€ marker_count

get a count of markers in this context. no cap, it just counts them πŸ’…

πŸŽ€ share_axes_with ($other_context)

sets this context's axes to those of the supplied context. it's a convenience method for quickly sharing axes πŸ¦‹

and it's simply doing:

$self->range_axis($other_context->range_axis);
$self->domain_axis($other_context->domain_axis);

like. it's giving teamwork. 🌸

ngl bestie, that's the entire method β€” it's just handing over the axes, don't overthink it πŸ’œ

🌟 AUTHOR 🌟

Cory G Watson <gphat@cpan.org> β€” thank u king πŸ‘‘

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. 🫢


and that's the whole page babes πŸ’– this lovely thing was churned out under perl v5.36.0, dated 2022-10-14, and it lives at Chart:...Context(3pm) in the User Contributed Perl Documentation. mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from