Chart:...Context(3pm)
π 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 π
π 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. π«Ά
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
- 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