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");
$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]);
returns a PNG image for output to a file or wherever.
open(IMG, '>test.jpg') or die $!;
print IMG $chart->png;
returns a JPEG image for output to a file or elsewhere, see png.
Aaron J Trevena E<lt>F<email@example.com>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.