Chart::OFC2::Title - OFC2 title object
use Chart::OFC2; use Chart::OFC2::Title; $chart = Chart::OFC2->new( 'title' => 'Bar chart test', ); $chart = Chart::OFC2->new( 'title' => Chart::OFC2::Title->new( 'text' => 'Bar chart test', 'style' => '{font-size:20px; font-family:Verdana; text-align:center;}', ), );
has 'text' => (is => 'rw', isa => 'Str', ); has 'style' => (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.