Google::Chartã®ä½¿ãæ¹
ããã£ã¨ã°ã©ããæã
Cactiã§ã°ã©ããä½æãããã¨æã£ã¦ãããã¼ã¿ããã£ãã®ã§ããï¼è²ã ãªãããã¿ãé¢åã«ãªã£ãã®ã§ï¼ãã¼ã«ã«ã«ãã¼ã¿ãåå¾ãã¦ã°ã©ãåãããã¨ã«ãã¾ããï¼ã©ããã£ã¦ã°ã©ãåãããã¡ãã£ã¨èãã¦ï¼æãåºããã®ãGoogle::Chartã§ããï¼ã¾ãä½ããã¨æã£ãã®ã棒グラフï¼ããã¯ãããªæãã§åãã¾ãï¼ã¯ã³ã©ã¤ãã¼ãªã®ã§ï¼æ¬æ¥ã¯1è¡ã§ãï¼
perl -MGoogle::Chart -le ' $c = Google::Chart->new( type => "Bar", color => ["4d89f9","c6d9fd"], data => [[1,2,3,4,5,6],[7,8,9,10,11,12]] ); print $c->as_uri'
ãããªグラフãã§ããããã¾ãï¼ã¨ããããã®ã¹ã¯ãªããã«å¿ è¦ãªãã¼ã¿ãçªã£è¾¼ããã¨ãããåãã¾ããã§ããï¼
perl -MGoogle::Chart -le ' $c = Google::Chart->new( type => "Bar", color => ["4d89f9","c6d9fd"], data => [[101],[101]] ); print $c->as_uri'
ã¤ã¾ãããããã®ã§ãï¼ã©ããå¤ã100ãè¶ããã¨ã ããªããã§ãï¼
Google::Chart::Data::Extendedã使ã
testã¹ã¯ãªãããããã¤ãã®ã¢ã¸ã¥ã¼ã«ãçºãã¦ãããGoogle::Chart::Data::Extendedã¨ããã®ãè¦ã¤ãã¾ããï¼ã©ããã100ãè¶ããå¤ã使ãæã«ã¯ããã使ãå¿ è¦ãããããã§ãï¼
perl -MGoogle::Chart -MGoogle::Chart::Data::Extended -le ' $c = Google::Chart->new( type => "Bar", color => ["4d89f9","c6d9fd"], data => Google::Chart::Data::Extended->new( dataset => [[100,101,102,103,104,105],[100,101,102,103,104,105]], max_value => 200) ); print $c->as_uri'
ãããå®è¡ããã¨こういうグラフã«ãªãã¾ãï¼ããã¾ã§ã§ããã¨ï¼ä»åº¦ã¯è»¸ã«ã©ãã«ãã¤ããããªãã¾ããï¼ãã®æã«ã¯ãããã¾ãï¼
perl -MGoogle::Chart -MGoogle::Chart::Data::Extended -le ' $c = Google::Chart->new( type => "Bar", color => ["4d89f9","c6d9fd"], data => Google::Chart::Data::Extended->new( dataset => [[100,101,102,103,104,105],[100,101,102,103,104,105]], max_value => 200), axis => [ {location => "x", labels => [1,2,3,4,5,6]}, {location => "y", labels => [0,50,100,150,200,250,300]} ], ); print $c->as_uri'
こんなグラフã«ãªãã¾ãï¼
ãã¾ã
æå¾ã«ã¿ã¤ãã«ãã¤ãã¦ã¿ã¾ãï¼
perl -MGoogle::Chart -MGoogle::Chart::Data::Extended -le ' $c = Google::Chart->new( type => "Bar", color => ["4d89f9","c6d9fd"], data => Google::Chart::Data::Extended->new( dataset => [[100,101,102,103,104,105],[100,101,102,103,104,105]], max_value => 200), axis => [ {location => "x", labels => [1,2,3,4,5,6]}, {location => "y", labels => [0,50,100,150,200,250,300]} ], title => { text => 'Sample1'}, ); print $c->as_uri'
ããã§こんなグラフã«ãªãã¾ãï¼ãã¼ã¨ï¼å ã ä½ãããã¨ãã¦ããã ã£ãâ¦ï¼çµæ§æéããã£ã¦ãã¾ãã¾ãããï¼