ナビゲーションをスキップする


Home > ライブラリ > [ライブラリ] Google Chart APIをPHPで簡単に使える「Chars with PHP and Google Charts API」

[ライブラリ] Google Chart APIをPHPで簡単に使える「Chars with PHP and Google Charts API」

URLだけでグラフ・チャートが作れる『Google Chart API』

URLだけでチャートが作れる「Google Chart API」ですが、URLを作るのが若干面倒です。

そこで、PHPで簡単にこのAPIを操ることができるライブラリが登場しました。

「Charts with PHP and Google Charts API」というこのライブラリを利用すると、次のようなコードでGoogle Chart APIを操ることができるようになります。


$chart = new googChart();
$chart->setChartAttrs( array(
    'type' => 'pie',
    'data' => $data,
    'size' => array( 300, 200 )
    ));
echo $chart;

分かりやすくていいですね。使ってみましょう。

»Charts with PHP and Google Charts API

Comments:0

Comment Form
Remember personal info

Trackback+Pingback:0

TrackBack URL for this entry
http://www.h2o-ajax.com/archives/66/trackback
Listed below are links to weblogs that reference
[ライブラリ] Google Chart APIをPHPで簡単に使える「Chars with PHP and Google Charts API」 from Recently Ajax

Home > ライブラリ > [ライブラリ] Google Chart APIをPHPで簡単に使える「Chars with PHP and Google Charts API」

Search
Feeds
Meta

Page Top