The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

GD::Chart::Radial

SYNOPSIS

use GD::Chart::Radial;
my $chart = GD::Chart::Radial->new($width, $height);
$chart->set(title=>"This is a chart, there are many like it but this is mine");
$chart->plot(\@data);

DESCRIPTION

This module allows you to plot and output Radial or Radar charts using the GD library. The module is based on GD::Graph in how it can be used where possible.

A radial chart has multiple axis spread out from the centre, like spokes on a wheel. Each axis represents a particular measurement. Values are plotted by marking the value for what is being measured on each axis and optionally joining these points. The result can look like a spiderweb or a radar depending on you plot the values.

METHODS

new

This constructor method creates a new chart object.

my $chart = GD::Chart::Radial->new($width,$height);

set

This accessor sets attributes of the graph such as the Title

$chart->set(title=>"This is a chart, there are many like it but this is mine");

or

$chart->set( legend => [qw/april may/], title => 'Some simple graph', y_max_value => $max, y_tick_number => 5, );

plot

This method plots the chart based on the data provided and the attributes of the graph

my @data = ([qw/A B C D E F G/],[12,21,23,30,23,22,5],[10,20,21,24,28,15,9]);

$chart->plot(\@data);

png

returns a PNG image for output to a file or wherever.

open(IMG, '>test.jpg') or die $!;

binmode IMG;

print IMG $chart->png;

close IMG

jpg

returns a JPEG image for output to a file or elsewhere, see png.

SEE ALSO

    GD

    GD::Graph

    Imager::Chart::Radial

AUTHOR

    Aaron J Trevena E<lt>F<aaron@droogs.org>E<gt>

COPYRIGHT

    Copyright (C) 2002,2004 Aaron Trevena

    This module is free software; you can redistribute it or modify it
    under the same terms as Perl itself.

2 POD Errors

The following errors were encountered while parsing the POD:

Around line 13:

'=item' outside of any '=over'

Around line 23:

You forgot a '=back' before '=head1'