<?php
include_once '../d3.classes.inc.php';
include_once '../google.classes.inc.php';
include_once '../element.php';
echo google()->visualization->DataTable(obj(array(
"cols" => array(
array("id" => 'task', "label" => 'Task', "type" => 'string'),
array("id" => 'hours', "label" => 'Hours per Day', "type" => 'number')
),
"rows" => array(
array("c" => array(array("v" => 'Work'), array("v" => 11))),
array("c" => array(array("v" => 'Eat'), array("v" => 2))),
array("c" => array(array("v" => 'Commute'), array("v" => 2))),
array("c" => array(array("v" => 'Watch TV'), array("v" => 2))),
array("c" => array(array("v" => 'Sleep'), array("v" => 7, "f" => '7.000')))
)
) ) );
|