Dave Rolsky > Chart-OFC-0.09 > Chart::OFC::Dataset::SketchBar

Download:
Chart-OFC-0.09.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  1
View Bugs
Report a bug
Source  

NAME ^

Chart::OFC::Dataset::SketchBar - A dataset represented as "sketch" bars

SYNOPSIS ^

  my $bars = Chart::OFC::Dataset::SketchBar->new( values     => \@numbers,
                                                  opacity    => 60,
                                                  randomness => 5,
                                                  fill_color => 'purple',
                                                  label      => 'Candy totals',
                                                  text_size  => 12,
                                                );

DESCRIPTION ^

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.

ATTRIBUTES ^

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.

randomness

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.

ROLES ^

This class does the Chart::OFC::Role::OFCDataLines role.

COPYRIGHT & LICENSE ^

Copyright 2007-2008 Dave Rolsky, All Rights Reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.