Show
Ignore:
Timestamp:
04/28/08 13:36:06 (7 months ago)
Author:
yusukebe
Message:

interface を変更, おそらくこの方が汎用性がある

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/WebService-Simple-Google-Chart/trunk/example/chart01.pl

    r10561 r10638  
    66 
    77my $chart = WebService::Simple::Google::Chart->new; 
    8 my $data  = { foo => 200, bar => 130, hoge => 70 }; 
    9 my $url   = $chart->get_url( 
     8my $url = $chart->get_url( 
    109    { 
    11         size => "250x100", 
    12         type => "p3", 
    13         data => $data, 
    14     } 
     10        chs => "250x100", 
     11        cht => "p3", 
     12   }, 
     13    { foo => 200, bar => 130, hoge => 70 } 
    1514); 
     15 
    1616print $url . "\n"; 
    17 #$chart->render_to_file("foo.png"); 
     17$chart->render_to_file("hoge.png");