Login   Register  
PHP Classes
elePHPant
Icontem

File: sample.pie.chart.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Tom Schaefer  >  QGoogleVisualizationAPI  >  sample.pie.chart.php  >  Download  
File: sample.pie.chart.php
Role: Example script
Content type: text/plain
Description: Pie sample
Class: QGoogleVisualizationAPI
Google Visualization API (deprecated)
Author: By
Last change:
Date: 2008-07-15 10:16
Size: 629 bytes
 

Contents

Class file image Download
<html>
<head>
</head>

<body>
<?php

include_once 'config.inc.php';

$chart = new QPiechartGoogleGraph;
$chart    ->addDrawProperties(
            array(
                
"title"=>'Company Performance',
                )
            )
        ->
addColumns(
            array(
                array(
'string''Task'),
                array(
'number''Hours per Day')
                )
            )
        ->
setValues(
            array(
                array(
00'Work'),
                array(
0111),
                array(
10'Eat'),
                array(
112),
                array(
20'Commute'),
                array(
212),
                array(
30'Watch TV'),
                array(
312),
            )
        );
echo 
$chart->render();

echo 
$chart->getReferenceLink();


?></body>
</html>