Dave Rolsky > Chart-OFC > Chart::OFC::Dataset::Line

Download:
Chart-OFC-0.12.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

New  1
Open  1
View/Report Bugs
Module Version: 0.12   Source  

NAME ^

Chart::OFC::Dataset::Line - A dataset represented as a line

VERSION ^

version 0.12

SYNOPSIS ^

    my @numbers = (1, 2, 3);
    my $line    = Chart::OFC::Dataset::Line->new(
        values    => \@numbers,
        width     => 5,
        color     => 'purple',
        label     => 'Daily Sales in $',
        text_size => 12,
    );

DESCRIPTION ^

This class contains values to be charted as a line on a grid chart.

ATTRIBUTES ^

This class has several attributes which may be passed to the new() method.

It is a subclass of Chart::OFC::Dataset and accepts all of that class's attributes as well as its own.

values

For this class, the values array may contain some undefined values. These are simply skipped in the resulting chart.

links

Just as with values, this may contain some undefined values.

width

The width of the line in pixels.

Defaults to 2.

color

The color of the line, and of the text in the chart key, if a label is specified.

Defaults to #999999 (medium grey).

label

If provided, this will be shown as part of the chart key.

This attribute is optional.

text_size

This is the size of the text in the key.

Defaults to 10 (pixels).

ROLES ^

This class does the Chart::OFC::Role::OFCDataLines role.

AUTHOR ^

Dave Rolsky <autarch@urth.org>

COPYRIGHT AND LICENSE ^

This software is Copyright (c) 2014 by Dave Rolsky.

This is free software, licensed under:

  The Artistic License 2.0 (GPL Compatible)
syntax highlighting: