Chart::OFC2::Extremes - OFC2 axis or chart extremes


Chart-OFC2 documentation  | view source Contained in the Chart-OFC2 distribution.

Index


NAME

Top

Chart::OFC2::Extremes - OFC2 axis or chart extremes

SYNOPSIS

Top

    use Chart::OFC2::Extremes;

    has 'extremes' => (
        is      => 'rw',
        isa     => 'Chart::OFC2::Extremes',
        default => sub { Chart::OFC2::Extremes->new() },
        lazy    => 1,
    );

    $self->extremes->reset();

DESCRIPTION

Top

PROPERTIES

Top

    has 'x_axis_max' => (is => 'rw', isa => 'Num|Undef', );
    has 'x_axis_min' => (is => 'rw', isa => 'Num|Undef', );
    has 'y_axis_max' => (is => 'rw', isa => 'Num|Undef', );
    has 'y_axis_min' => (is => 'rw', isa => 'Num|Undef', );
    has 'other'      => (is => 'rw', isa => 'Num|Undef', );

METHODS

Top

new()

Object constructor.

reset($axis_type, $values)

Calculate x or y minimal and maximal values and set (x|y)_axis_(min|max) according.

TO_JSON()

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

AUTHOR

Top

Jozef Kutej


Chart-OFC2 documentation  | view source Contained in the Chart-OFC2 distribution.