Chart::OFC2::Labels - OFC2 labels object
use Chart::OFC2::Labels; 'x_axis' => Chart::OFC2::XAxis->new( labels => { labels => [ 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun' ] } ), 'x_axis' => Chart::OFC2::XAxis->new( labels => { labels => [ 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun' ], colour => '#555555', rotate => 45 } ),
has 'labels' => ( is => 'rw', isa => 'ArrayRef', ); has 'colour' => ( is => 'rw', isa => 'Str', alias => 'color' ); has 'rotate' => ( is => 'rw', isa => 'Num', );
Object constructor.
Returns HashRef that is possible to give to encode_json() function.
encode_json()
Same as colour().
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.