Chart::OFC2::ToolTip - OFC2 tool tip settings object
use Chart::OFC2; use Chart::OFC2::Tooltip; my $tooltip = Chart::OFC2::ToolTip->new( 'mouse' => 2, 'shadow' => 0, 'stroke' => 5, 'colour' => '#6E604F', 'background' => '#BDB396', 'title' => '{font-size: 14px; color: #CC2A43;}', 'body' => '{font-size: 10px; font-weight: bold; color: #000000;}', );
OFC2 tooltip settings.
has 'mouse' => (is => 'rw', isa => 'Int',); has 'shadow' => (is => 'rw', isa => 'Bool', ); has 'stroke' => (is => 'rw', isa => 'Int',); has 'colour' => (is => 'rw', isa => 'Str',); has 'background' => (is => 'rw', isa => 'Str',); has 'title' => (is => 'rw', isa => 'Str',); has 'body' => (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.