|
NAMEGoogle::Chart - Interface to Google Charts APISYNOPSISuse Google::Chart; my $chart = Google::Chart->new( type => "Bar", data => [ 1, 2, 3, 4, 5 ] ); print $chart->as_uri, "\n"; # or simply print $chart, "\n" $chart->render_to_file( filename => 'filename.png' ); DESCRITPIONGoogle::Chart provides a Perl Interface to Google Charts API (http://code.google.com/apis/chart/).Please note that version 0.05000 is a major rewrite, and has little to no backwards compatibility. METHODSnew(%args)Creates a new Google::Chart instance.
as_uri()Returns the URI that represents the chart object.render()Generates the chart image, and returns the contents. This method internally uses LWP::UserAgent. If you want to customize LWP settings, create an instance of LWP::UserAgent and pass it in the constructorGoogle::Chart->new( ...., ua => LWP::UserAgent->new( %your_args ) ); Proxy settings are automatically read via LWP::UserAgent->env_proxy(), unless you specify GOOGLE_CHART_ENV_PROXY environment variable to 0 render_to_file( %args )Generates the chart, and writes the contents out to the file specified by `filename' parameterBASE_URIThe base URI for Google ChartFEEDBACKWe don't believe that we fully utilize Google Chart's abilities. So there might be things missing, things that should be changed for easier use. If you find any such case, PLEASE LET US KNOW! Suggestions are welcome, but code snippets, pseudocode, or even better, test cases, are most welcome.TODO
AUTHORSDaisuke Maki "<daisuke@endeworks.jp>" (current maintainer)Nobuo Danjou "<nobuo.danjou@gmail.com>" Marcel Grünauer "<marcel@cpan.org>" (original author) LICENSEThis program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.See http://www.perl.com/perl/misc/Artistic.html POD ERRORSHey! The above document had some coding errors, which are explained below:
Visit the GSP FreeBSD Man Page Interface. |