NAME

Chart::Clicker - Graphs

DESCRIPTION

Chart::Clicker takes Elements and creates PNG chart.

SYNOPSIS

my $c = new Chart::Clicker({ width => 500, height => 350 });

my $dataset = new Chart::Clicker::Data::DataSet();

my $series = new Chart::Clicker::Data::Series();
$series->keys([1, 2, 3, 4, 5, 6]);
$series->values([12, 9, 8, 3, 5, 1]);

$dataset->series([$series]);

$chart->datasets([$datasets]);

my $renderer = new Chart::Clicker::Renderer::Line();
$chart->plot()->renderer($renderer);

$chart->draw();
my $img = $chart->image();

METHODS

Constructor

Chart::Clicker->new(

)

Creates a new Chart::Clicker object. Sets the width to 500, the height to 300.

Class Methods

$c->inside_width()

Get this Chart's 'inside' width. i.e. width - insets->left() - insets->right - border()->stroke()->width * 2.

Be aware that this isn't a constant value. As insets are changed, this value changes.

$c->inside_height()

Get this Chart's 'inside' height. i.e. height - insets->top() - insets->bottom() - border->stroke()->width * 2.

Be aware that this isn't a constant value. As insets are changed, this value changes.

$c->draw()

Draw this chart

AUTHOR

Cory 'G' Watson <gphat@onemogin.com>

SEE ALSO

perl(1)