<?php 
 
 
include_once '../d3.classes.inc.php';
 
include_once '../google.classes.inc.php';
 
include_once '../element.php';
 
 
$init = google()
 
    ->visualization
 
    ->ColumnChart(document()->getElementById("chart_div"));
 
 
$chart = $init->createVar("chart");
 
stack()->add($chart);
 
?>
 
 
<?php 
 
stack()->add( google($chart->getVar())->draw(array(1,2,3), obj(array(
 
    "width" => '100%', "height" => 266,
 
    "colors" => array('#c7cfc7', '#b2c8b2', '#d9e0de', '#cdded1'),
 
    "chartArea" => array("left"=>38,"top"=>30, "width"=>"75%","height"=>"70%"),
 
    "legendTextStyle" => array("color"=>'#666666'),
 
    "hAxis"=> array("title"=> 'Year', "titleTextStyle"=> array("color"=> '#5c5c5c'), 
 
    "titlePosition"=> 'out'))
 
))
 
);
 
 
$html = stack();
 
echo $html;
 
 
 |