GD::Graph::splined - Smooth line graphs with GD::Graph


GD-Graph-splined documentation  | view source Contained in the GD-Graph-splined distribution.

Index


NAME

Top

GD::Graph::splined - Smooth line graphs with GD::Graph

SYNOPSIS

Top

	use strict;
	use GD::Graph::splined;

	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;

	$graph->set(
		x_label => 'X Label',
		y_label => 'Y label',
		title => 'A Splined Graph',
	);
	$graph->set_legend( 'one', 'two' );
	$graph->plot(\@data);

	open(OUT, ">splined.png") or die $!;
	binmode OUT;
	print OUT $graph->gd->png;
	close OUT;

DESCRIPTION

Top

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.

BUGS

Top

Please use the CPAN Request Tracker to lodge bugs: http://rt.cpan.org.

SEE ALSO

Top

GD::Graph, GD::Graph::area, GD::Polyline, GD.

AUTHOR AND COPYRIGHT

Top


GD-Graph-splined documentation  | view source Contained in the GD-Graph-splined distribution.