Wight::Chart::Google - Save google charts to images using phantomjs
version 0.003
use Wight::Chart::Google; my $chart = Wight::Chart::Google->new( type => "area", width => 900, height => 500, options => { backgroundColor => 'transparent', hAxis => { gridlines => { color => "#fff" } }, vAxis => { gridlines => { color => "#fff" } }, legend => { position => 'none' }, } ); $chart->columns([ { name => 'Day', type => 'string' }, { name => 'Amount', type => 'number' }, ]); $chart->rows([['1st',100], ['2nd',150], ['3rd',50], ['4th',70]]); $chart->render();
Wight::Chart::Google - Generate static google charts
Simon Elliott <simon@papercreatures.com>
This software is copyright (c) 2013 by Simon Elliott.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Wight::Chart, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Wight::Chart
CPAN shell
perl -MCPAN -e shell install Wight::Chart
For more information on module installation, please visit the detailed CPAN module installation guide.