Chart::OFC::Dataset::SketchBar - A dataset represented as "sketch" bars
version 0.12
my @numbers = (1, 2, 3); my $bars = Chart::OFC::Dataset::SketchBar->new( values => \@numbers, opacity => 60, randomness => 5, fill_color => 'purple', label => 'Candy totals', text_size => 12, );
This class contains values to be charted as bars on a grid chart. The bars are filled with the specified color in the style of a child's crayon drawing.
This class is a subclass of Chart::OFC::Dataset::OutlinedBar and accepts all of that class's attributes. It has one attribute of its own.
Chart::OFC::Dataset::OutlinedBar
This is an integer (0 or greater) defining how random the sketch style is. The greater it is the more random the look. The default value is 3.
This class does the Chart::OFC::Role::OFCDataLines role.
Chart::OFC::Role::OFCDataLines
Dave Rolsky <autarch@urth.org>
This software is Copyright (c) 2014 by Dave Rolsky.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
To install Chart::OFC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Chart::OFC
CPAN shell
perl -MCPAN -e shell install Chart::OFC
For more information on module installation, please visit the detailed CPAN module installation guide.