Chart::OFC::Dataset::Scatter - A dataset represented as a scatter plot point for each value


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

Index


NAME

Top

Chart::OFC::Dataset::Scatter - A dataset represented as a scatter plot point for each value

VERSION

Top

version 0.10

SYNOPSIS

Top

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

DESCRIPTION

Top

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

ATTRIBUTES

Top

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

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

values

This dataset accepts an arrayref which in turn contains one or more array references, each of which contains a set of values.

circle_size

This is included for compatibility with OFC, but does not seem to effect the chart.

Defaults to 5.

ROLES

Top

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

AUTHOR

Top

Dave Rolsky <autarch@urth.org>

COPYRIGHT AND LICENSE

Top


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