| Chart-OFC documentation | Contained in the Chart-OFC distribution. |
my $bars = Chart::OFC::Dataset::GlassBar->new( values => \@numbers,
opacity => 60,
fill_color => 'purple',
label => 'Daily Sales in $',
text_size => 12,
);
This class contains values to be charted as bars on a grid chart. The bars are filled with the specified color and have a separate outline color.
This class is a subclass of Chart::OFC::Dataset::OutlinedBar and accepts
all of that class's attributes. It has no attributes of its own.
This class does the Chart::OFC::Role::OFCDataLines role.
| Chart-OFC documentation | Contained in the Chart-OFC distribution. |
package Chart::OFC::Dataset::GlassBar; BEGIN { $Chart::OFC::Dataset::GlassBar::VERSION = '0.10'; } use strict; use warnings; use Moose; use MooseX::StrictConstructor; use Chart::OFC::Types; extends 'Chart::OFC::Dataset::OutlinedBar'; sub type { return 'bar_glass'; } no Moose; __PACKAGE__->meta()->make_immutable(); 1;