GD::Graph::splined - Smooth line graphs with GD::Graph
my @data = (
["1st","2nd","3rd","4th","5th","6th","7th", "8th", "9th"],
[ 5, 12, 24, 33, 19,undef, 6, 15, 21],
[ 1, 2, 5, 6, 3, 1.5, 1, 3, 4]
my $graph = GD::Graph::splined->new;
x_label => 'X Label',
y_label => 'Y label',
title => 'A Splined Graph',
$graph->set_legend( 'one', 'two' );
open(OUT, ">splined.png") or die $!;
print OUT $graph->gd->png;
A GD::Graph module that can be treated as an area graph, but renders splined (smoothed) line graphs.
See GD::Graph for more details of how to produce graphs with GD.
Please use the CPAN Request Tracker to lodge bugs: http://rt.cpan.org.
GD::Graph, GD::Graph::area, GD::Polyline, GD.
Lee Goddard added to Martien Verbruggen's GD::Graph::area module the ability to use Daniel J Harasty's GD::Polyline module.
Thus, Copyright (c) 1995-2000 Martien Verbruggen with parts copyright (c) 2006 Lee Goddard (lgoddard -at- cpan -dot- org).
This software is made available under the same terms as GD::Graph.
To install GD::Graph::splined, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.