<?php

include_once '../config.inc.php';
$v = new Google_Visualization("Gauge");
$c = new Google_Config("Gauge");
$o = new Google_Data_Base();
// config
$c->defaultConfig("MyTestGauge");
$c->setProperty("min", 0);
$c->setProperty("max", 280);
$c->setProperty("yellowFrom", 200);
$c->setProperty("yellowTo", 250);
$c->setProperty("redFrom", 250);
$c->setProperty("redTo", 280);
$c->setProperty("minorTicks", 5);
$v->setConfig($c);
// data
$o->addColumn("0", "Engine", "number");
$o->addColumn("1", "Torpedo", "number");
$o->addNewRow();
$o->addNumberCellToRow(120, "400.0");
$o->addNumberCellToRow(80, "400.0");
$v->setData($o);
?>
<html>
<head>
<?php 
echo $v->render();
?>
</head>
<body>
<?php

include_once 'Google.merge.v_1_0.php';
$v = new Google_Visualization();
$c = new Google_Config("IntensityMap");
// config
$c->defaultConfig("MyIntensityMap");
// data
$o = Google_Data::getInstance()->getDataObject();
$o->addColumn("0", "Country", "string");
$o->addColumn("1", "Sales", "number");
$o->addColumn("1", "Expenses", "number");
$o->addNewRow();
$o->addStringCellToRow("US");
$o->addNumberCellToRow(10000, "400.0");
$o->addNumberCellToRow(8000, "400.0");
$o->addNewRow();
$o->addStringCellToRow("CA");
$o->addNumberCellToRow(7000, "400.0");
$o->addNumberCellToRow(5000, "400.0");
$o->addNewRow();
$o->addStringCellToRow("CN");
$o->addNumberCellToRow(8000, "400.0");
$o->addNumberCellToRow(12000, "400.0");
$o->addNewRow();
$o->addStringCellToRow("UK");
$o->addNumberCellToRow(7000, "400.0");
$o->addNumberCellToRow(15000, "400.0");
$v->setConfig($c);
$v->setData($o);
?>