Chart::OFC::Dataset::Line - A dataset represented as a line
version 0.11
my $line = Chart::OFC::Dataset::Line->new( values => \@numbers, width => 5, color => 'purple', label => 'Daily Sales in $', text_size => 12, );
This class contains values to be charted as a line on a grid chart.
This class has several attributes which may be passed to the new() method.
new()
It is a subclass of Chart::OFC::Dataset and accepts all of that class's attributes as well as its own.
Chart::OFC::Dataset
For this class, the values array may contain some undefined values. These are simply skipped in the resulting chart.
Just as with values, this may contain some undefined values.
The width of the line in pixels.
Defaults to 2.
The color of the line, and of the text in the chart key, if a label is specified.
Defaults to #999999 (medium grey).
If provided, this will be shown as part of the chart key.
This attribute is optional.
This is the size of the text in the key.
Defaults to 10 (pixels).
This class does the Chart::OFC::Role::OFCDataLines role.
Chart::OFC::Role::OFCDataLines
Dave Rolsky <autarch@urth.org>
This software is Copyright (c) 2012 by Dave Rolsky.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
To install Chart::OFC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Chart::OFC
CPAN shell
perl -MCPAN -e shell install Chart::OFC
For more information on module installation, please visit the detailed CPAN module installation guide.