Chart::Clicker::Simple - Simple Clicker Chart
Clicker's API can be a bit daunting for simple work. This class aims to make it a bit more simple.
use Chart::Clicker::Simple; use Chart::Clicker::Line; my $simple = new Chart::Clicker::Simple({ # Add two sets of data! data => [ { keys => [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], values => [ 2, 6, 8, 3, 5, 9, 1, 3, 1, 7 ] }, { keys => [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ], values => [ 4, 4, 5, 8, 12, 7, 0, 5, 4, 10 ] } ], domain_label => 'Danes', range_label => 'Footballs', renderer => new Chart::Clicker::Renderer::Line() }); $simple->draw();
Creates a new Chart::Clicker::Simple object. You can specify the following values in the hash to influence the underlying Chart::Clicker object:
An arrayref of hashrefs. Each hashref should have the two keys; one named keys and the other values. These two keys should contain arrayrefs that contain the data. See the Synopsis for an example.
The label for the domain axis.
The label for the range axis.
Height of the chart.
Width of the chart.
Required! The renderer to use for this chart.
None.
Cory 'G' Watson <gphat@cpan.org>
Chart::Clicker
You can redistribute and/or modify this code under the same terms as Perl itself.
To install Chart::Clicker, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Chart::Clicker
CPAN shell
perl -MCPAN -e shell install Chart::Clicker
For more information on module installation, please visit the detailed CPAN module installation guide.