Chart::OFC2::Element - OFC2 base module for chart elements
use Moose; extends 'Chart::OFC2::Element';
has 'type_name' => (is => 'rw', isa => enum([qw( bar bar_3d bar_filled bar_glass pie hbar line line_dot line_hollow area_hollow scatter )]), required => 1); has 'values' => (is => 'rw', isa => 'ArrayRef', trigger => sub { $_[0]->extremes->reset('y' => $_[1]); } ); has 'extremes' => (is => 'rw', isa => 'Chart::OFC2::Extremes', default => sub { Chart::OFC2::Extremes->new() }, lazy => 1, coerce => 1); has 'use_extremes' => (is => 'rw', isa => 'Bool', default => 0 ); has 'on-click' => (is => 'rw', isa => 'Str', ); has 'tip' => (is => 'rw', isa => 'Str',); has 'alpha' => (is => 'rw', isa => 'Num',); has 'colour' => (is => 'rw', isa => 'Str',); has 'text' => (is => 'rw', isa => 'Str',);
Object constructor.
Returns HashRef that is possible to give to encode_json() function.
encode_json()
Jozef Kutej
To install Chart::OFC2, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Chart::OFC2
CPAN shell
perl -MCPAN -e shell install Chart::OFC2
For more information on module installation, please visit the detailed CPAN module installation guide.