Jozef Kutej > Chart-OFC2-0.07 > Chart::OFC2::Labels

Download:
Chart-OFC2-0.07.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.07   Source   Latest Release: Chart-OFC2-0.08_02

NAME ^

Chart::OFC2::Labels - OFC2 labels object

SYNOPSIS ^

    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
        }
    ),

DESCRIPTION ^

PROPERTIES ^

    has 'labels' => ( is => 'rw', isa => 'ArrayRef', );
    has 'colour' => ( is => 'rw', isa => 'Str', alias => 'color' );
    has 'rotate' => ( is => 'rw', isa => 'Num', );

METHODS ^

new()

Object constructor.

TO_JSON()

Returns HashRef that is possible to give to encode_json() function.

color()

Same as colour().

AUTHOR ^

Jozef Kutej

syntax highlighting: