Chart::OFC::Dataset::Bar - A dataset represented as bars


Chart-OFC documentation  | view source Contained in the Chart-OFC distribution.

Index


NAME

Top

Chart::OFC::Dataset::Bar - A dataset represented as bars

VERSION

Top

version 0.10

SYNOPSIS

Top

  my $bars = Chart::OFC::Dataset::Bar->new( values     => \@numbers,
                                            opacity    => 60,
                                            fill_color => 'purple',
                                            label      => 'Daily Sales in $',
                                            text_size  => 12,
                                          );

DESCRIPTION

Top

This class contains values to be charted as bars on a grid chart. The bars are filled with the specified color, but have no outline or other styling.

ATTRIBUTES

Top

This class has several attributes which may be passed to the new() method.

It is a subclass of Chart::OFC::Dataset and accepts all of that class's attributes as well as its own.

opacity

This defines how opaque the bars are. When they are moused over, they become fully opaque.

Defaults to 80 (percent).

fill_color

The color used to fill the bars.

Defaults to #999999 (medium grey).

label

If provided, this will be shown as part of the chart key. The label will be the same color as the fill_color for the bars.

This attribute is optional.

text_size

This is the size of the text in the key.

Defaults to 10 (pixels).

ROLES

Top

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

AUTHOR

Top

Dave Rolsky <autarch@urth.org>

COPYRIGHT AND LICENSE

Top


Chart-OFC documentation  | view source Contained in the Chart-OFC distribution.