| Chart-OFC2 documentation | Contained in the Chart-OFC2 distribution. |
Chart::OFC2::Bar - OFC2 bar chart
use Chart::OFC2;
use Chart::OFC2::Axis;
use Chart::OFC2::Bar;
my $chart = Chart::OFC2->new(
'title' => 'Bar chart test',
'x_axis' => Chart::OFC2::XAxis->new(
'labels' => [ 'Jan', 'Feb', 'Mar', 'Apr', 'May' ],
),
'y_axis' => {
'max' => 'a',
'min' => 'a',
},
);
my $bar = Chart::OFC2::Bar->new();
$bar->values([ 1..5 ]);
$chart->add_element($bar);
print $chart->render_chart_data();
extends 'Chart::OFC2::BarLineBase';
has '+type_name' => (default => 'bar');
3D bar chart
extends 'Chart::OFC2::Bar';
has '+type_name' => (default => 'bar_3d');
Fade bar chart
extends 'Chart::OFC2::Bar';
has '+type_name' => (default => 'bar_fade');
Glass bar chart
extends 'Chart::OFC2::Bar';
has '+type_name' => (default => 'bar_glass');
Sketch bar chart
extends 'Chart::OFC2::Bar';
has '+type_name' => (default => 'bar_sketch');
Filled bar chart
extends 'Chart::OFC2::Bar';
has '+type_name' => (default => 'bar_filled'); has 'outline_collor' => (is => 'rw', isa => 'Str',);
Stack bar chart
extends 'Chart::OFC2::Bar';
has '+type_name' => (default => 'bar_stack'); has 'text' => (is => 'rw', isa => 'Str',);
| Chart-OFC2 documentation | Contained in the Chart-OFC2 distribution. |
package Chart::OFC2::Bar;
use Moose; use MooseX::StrictConstructor; our $VERSION = '0.07'; extends 'Chart::OFC2::BarLineBase';
has '+type_name' => (default => 'bar'); 1;
package Chart::OFC2::Bar::3D; use Moose; use MooseX::StrictConstructor; our $VERSION = '0.07'; extends 'Chart::OFC2::Bar';
has '+type_name' => (default => 'bar_3d'); 1;
package Chart::OFC2::Bar::Fade; use Moose; use MooseX::StrictConstructor; our $VERSION = '0.07'; extends 'Chart::OFC2::Bar';
has '+type_name' => (default => 'bar_fade'); 1;
package Chart::OFC2::Bar::Glass; use Moose; use MooseX::StrictConstructor; our $VERSION = '0.07'; extends 'Chart::OFC2::Bar';
has '+type_name' => (default => 'bar_glass'); 1;
package Chart::OFC2::Bar::Sketch; use Moose; use MooseX::StrictConstructor; our $VERSION = '0.07'; extends 'Chart::OFC2::Bar';
has '+type_name' => (default => 'bar_sketch'); 1;
package Chart::OFC2::Bar::Filled; use Moose; use MooseX::StrictConstructor; our $VERSION = '0.07'; extends 'Chart::OFC2::Bar';
has '+type_name' => (default => 'bar_filled'); has 'outline_collor' => (is => 'rw', isa => 'Str',); 1;
package Chart::OFC2::Bar::Stack; use Moose; use MooseX::StrictConstructor; our $VERSION = '0.07'; extends 'Chart::OFC2::Bar';
has '+type_name' => (default => 'bar_stack'); has 'text' => (is => 'rw', isa => 'Str',); 1;