Simon Elliott > Wight-Chart-0.003 > Wight::Chart::Google

Download:
Wight-Chart-0.003.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.003   Source  

NAME ^

Wight::Chart::Google - Save google charts to images using phantomjs

VERSION ^

version 0.003

SYNOPSIS ^

  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();

NAME ^

Wight::Chart::Google - Generate static google charts

AUTHOR ^

Simon Elliott <simon@papercreatures.com>

COPYRIGHT AND LICENSE ^

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.

syntax highlighting: