A php wrapper for the Google Chart API

Quick examples.

type = 6; $egChart->height = 115; $egChart->values = Array("12,15,66,34"); $egChart->valueLabels = Array("first", "second", "third","fourth"); ?>

Pie Chart

awesome!

$egChart = new gChart;
$egChart->type = 6;
$egChart->height = 115;
$egChart->values = Array("12,15,66,34");
$egChart->valueLabels = Array("first", "second", "third","fourth");
type = 7; $egChart->width = 240; $egChart->height = 100; ?>

"3-D" Pie Chart

awesome-tastic!

$egChart = new gChart;
$egChart->width = 220;
$egChart->height = 100;
$egChart->type = 7;
$egChart->values = Array("12,15,66,34");
$egChart->valueLabels = Array("first", "second", "third","fourth");
type = 0; $egChart->height = 200; ?>

Line Chart

super-mega-awesome!

$egChart = new gChart;
$egChart->type = 0;
$egChart->values = Array("12,15,66,34");
$egChart->valueLabels = Array("first", "second", "third","fourth");
type = 2; ?>

Horizontal Stacked Bar Chart

i think we are getting the point...

$egChart = new gChart;
$egChart->type = 2;
$egChart->values = Array("12,15,66,34");
$egChart->valueLabels = Array("first", "second", "third","fourth");
type = 3; ?>

Vertical Stacked Bar Chart

well this is getting old... no one is impressed.

$egChart = new gChart;
$egChart->type = 3;
$egChart->values = Array("12,15,66,34");
$egChart->valueLabels = Array("first", "second", "third","fourth");