GD::Chart::Radial
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.
This constructor method creates a new chart object.
my $chart = GD::Chart::Radial->new($width,$height);
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, );
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);
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
returns a JPEG image for output to a file or elsewhere, see png.
GD GD::Graph Imager::Chart::Radial
Aaron J Trevena E<lt>F<aaron@droogs.org>E<gt>
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:
'=item' outside of any '=over'
You forgot a '=back' before '=head1'
To install GD::Chart::Radial, copy and paste the appropriate command in to your terminal.
cpanm
cpanm GD::Chart::Radial
CPAN shell
perl -MCPAN -e shell install GD::Chart::Radial
For more information on module installation, please visit the detailed CPAN module installation guide.