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

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::Line - OFC2 Line chart

SYNOPSIS ^

    use Chart::OFC2;
    use Chart::OFC2::Axis;
    use Chart::OFC2::Line;
    
    my $chart = Chart::OFC2->new(
        'title'  => 'Line chart test',
        'x_axis' => Chart::OFC2::XAxis->new(
            'labels' => [ 'Jan', 'Feb', 'Mar', 'Apr', 'May' ],
        ),
    );
    
    my $line = Chart::OFC2::Line->new();
    $line->values([ 1..5 ]);
    $chart->add_element($line);

    print $chart->render_chart_data();

DESCRIPTION ^

        extends 'Chart::OFC2::BarLineBase';

PROPERTIES ^

    has '+type_name' => (default => 'line');
    has 'width'      => (is => 'rw', isa => 'Int',);

Chart::OFC2::Line::Dot ^

Dotted line chart

        extends 'Chart::OFC2::Line';

PROPERTIES ^

        has '+type_name' => (default => 'line_dot');
    has 'dot-size'   => (is => 'rw', isa => 'Int',);

Chart::OFC2::Line::Hollow ^

Hollow line chart

        extends 'Chart::OFC2::Line::Dot';

PROPERTIES ^

        has '+type_name' => (default => 'line_hollow');

Chart::OFC2::Area::Hollow ^

Hollow line chart

        extends 'Chart::OFC2::Line::Dot';

PROPERTIES ^

        has '+type_name' => (default => 'area_hollow');
syntax highlighting: