| Chart-OFC2 documentation | view source | Contained in the Chart-OFC2 distribution. |
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.
Same as colour().
Jozef Kutej
| Chart-OFC2 documentation | view source | Contained in the Chart-OFC2 distribution. |