NAME
Chart::Clicker - Powerful, extensible charting.
DESCRIPTION
Chart::Clicker aims to be a powerful, extensible charting package that creates really pretty output.
Clicker leverages the power of Cairo to create snazzy 2D graphics easily and quickly.
SYNOPSIS
use Chart::Clicker;
use Chart::Clicker::Drawing::Color;
my $c = new Chart::Clicker({ width => 500, height => 350 });
$chart->background_color(
new Chart::Clicker::Drawing::Color({
red => 1, green => 1, blue => 1, alpha => 1
})
}
my $series = new Chart::Clicker::Data::Series();
$series->keys([1, 2, 3, 4, 5, 6]);
$series->values([12, 9, 8, 3, 5, 1]);
my $dataset = new Chart::Clicker::Data::DataSet();
$dataset->series([$series]);
$chart->plot()->datasets([$datasets]);
my $renderer = new Chart::Clicker::Renderer::Line();
$chart->plot()->renderer($renderer);
$chart->draw();
$chart->write('/path/to/chart.png');
METHODS
Constructor
- new
-
Creates a new Chart::Clicker object. If no width and height are specified then defaults of 500 and 300 are chosen, respectively.
Class Methods
AUTHOR
Cory 'G' Watson <gphat@cpan.org>
SEE ALSO
perl(1)