12-08-2007, 05:08 PM
|
#8 (permalink)
|
|
Moderateur
Join Date: Apr 2007
Posts: 700
Thanks: 2
|
I got bored last night and wrote a quick wrapper for this API. It means I could write something like the following and get the image back.
php Code:
$aData = array(33, 30, 37, 37, 40, 23, 15, 18, 17, 4); $pChart = new GoogleChart_Line (200, 100); $pChart-> data($aData); $pChart-> title("My Chart", '333333', '20'); // optional$pChart-> fill_background('ECF0F3'); // optional$pChart-> render();
Which results in: 
It's very crude at the moment, so no code releases!  Maybe you can have a stab at writing a similar class too. 
__________________
Last edited by Salathe : 12-08-2007 at 05:42 PM.
|
|
|
|