Skip to content

Google Charts Helper

dogmatic69 edited this page Sep 13, 2010 · 2 revisions

A few times i have needed to create graphs and charts for applications im building. Fancy flash charts are not always needed and are mostly difficult to use. If you need something that can quickly create simple charts the google charts api is probably what you need.

As time goes on i will try and cover the entire charts api, currently at commit 534cf50acdb3f362b5a8e6b8f960f7272aba3a94 the entire pie charts part of the api is covered. The basics of bar and line charts are also covered currently.

example usage for a 3d pie chart

echo $chart->display( 'pie3d', array( 'data' => array( 10, 30, 15 ), 'labels' => array( 'bob', 'john', 'sam' ), 'size' => array( 1000, 299 ) ) );

all the functionality is here: http://gist.github.com/242762

Clone this wiki locally