File: sample_pie.php

Recommend this page to a friend!
  Classes of Tom Schaefer  >  QGoogleVisualizationAPI 2009  >  sample_pie.php  >  Download  
File: sample_pie.php
Role: Example script
Content type: text/plain
Description: Pie Chart Test
Class: QGoogleVisualizationAPI 2009
Generate charts with Google Visualization API
Author: By
Last change:
Date: 12 years ago
Size: 835 bytes


Class file image Download

include_once 'Google.merge.v_1_0.php';

$o = new Google_Data_Base;

$o->addColumn("1","Hours per day","number");




$o->addStringCellToRow("Watch TV");

$c = new Google_Config("PieChart", "Company Performance");
$c->setProperty("width", 300)->setProperty("height", 200);

$v = new Google_Visualization();

echo $v->render();
  <div id="chart"></div>

For more information send a message to info at phpclasses dot org.