| 1 | package Chart::OFC::Dataset::GlassBar; | ||
| 2 | 20 | $Chart::OFC::Dataset::GlassBar::VERSION = '0.12'; | |
| 3 | 20 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 20 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 20 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 20 | ▶ | use MooseX::StrictConstructor; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 20 | ▶ | use Chart::OFC::Types; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 20 | extends 'Chart::OFC::Dataset::OutlinedBar'; | |
| 11 | |||
| 12 | sub type | ||
| 13 | 4 | ▶ | { |
|
Subroutine
type: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 14 | 4 | return 'bar_glass'; | |
| 15 | } | ||
| 16 | |||
| 17 | 20 | ▶ | no Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 18 | |||
| 19 | 20 | __PACKAGE__->meta()->make_immutable(); | |
| 20 | |||
| 21 | 20 | 1; | |
| 22 | |||
| 23 | |||
| 24 | =pod | ||
| 25 | |||
| 26 | =for Pod::Coverage type | ||
| 27 | |||
| 28 | =head1 SYNOPSIS | ||
| 29 | |||
| 30 | my @numbers = (1, 2, 3); | ||
| 31 | my $bars = Chart::OFC::Dataset::GlassBar->new( | ||
| 32 | values => \@numbers, | ||
| 33 | opacity => 60, | ||
| 34 | fill_color => 'purple', | ||
| 35 | label => 'Daily Sales in $', | ||
| 36 | text_size => 12, | ||
| 37 | ); | ||
| 38 | |||
| 39 | =head1 DESCRIPTION | ||
| 40 | |||
| 41 | This class contains values to be charted as bars on a grid chart. The | ||
| 42 | bars are filled with the specified color and have a separate outline | ||
| 43 | color. | ||
| 44 | |||
| 45 | =head1 ATTRIBUTES | ||
| 46 | |||
| 47 | This class is a subclass of C<Chart::OFC::Dataset::OutlinedBar> and accepts | ||
| 48 | all of that class's attributes. It has no attributes of its own. | ||
| 49 | |||
| 50 | =head1 ROLES | ||
| 51 | |||
| 52 | This class does the C<Chart::OFC::Role::OFCDataLines> role. | ||
| 53 | |||
| 54 | =cut | ||