Chart:...er::Bar(3pm)

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

πŸ’– Chart::Clicker::Renderer::Bar πŸ’–

okay bestie, real talk β€” you're looking at the manual page for Chart::Clicker::Renderer::Bar from the User Contributed Perl Documentation, and it's giving "I draw bars, that's my whole personality." Let's get into it. 🫢


✨ NAME ✨

Chart::Clicker::Renderer::Bar β€” the Bar renderer, no cap. 🌈


🌸 VERSION 🌸

version 2.90 ✨


πŸŽ€ SYNOPSIS πŸŽ€

my $br = Chart::Clicker::Renderer::Bar->new;

That's it. That's the whole vibe. Make one, hand it over, bars happen. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

Chart::Clicker::Renderer::Bar renders a dataset as bars. That's the job, that's the assignment, and it ate. πŸ”₯


πŸ’€ NEGATIVE BARS πŸ’€

If you'd like to render both "negative and positive" bars, go peek at Chart::Clicker::Axis's "baseline" attribute. Setting it will result in something like this:

bar_padding

(lowkey this one lives under here in the docs, so I'm keeping it right where it is β€” no notes) 🫢

How much padding to put around a bar. A padding of 4 will result in 2 pixels on each side. Math! It's giving symmetry. ✨


πŸ‘‘ ATTRIBUTES πŸ‘‘

  • bar_width β€” lets you override the calculation that figures out the optimal width for bars. Be careful using this though, because it can make things look terrible. Also note that this number is divided evenly between all the values in a series when you're charting multiple series. ngl, respect the calculation. πŸ™ˆ
  • brush β€” set/get the brush to use around each bar.
  • opacity β€” set/get the alpha value to make each bar more or less opaque. Boom, transparency era. πŸ’œ

🧚 AUTHOR 🧚

Cory G Watson <gphat@cpan.org> β€” legend behavior, fr fr. ⭐


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, honestly. πŸŽ€


sign-off bestie: this page came to you courtesy of perl v5.36.0, dated 2022-10-14, and it's iconic. go make some bars, main character. πŸ’…πŸŒΈβœ¨

πŸ“¦ where this page comes from