Login   Register  
PHP Classes
elePHPant
Icontem

File: sample.anno.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.anno.php  >  Download  
File: sample.anno.php
Role: Example script
Content type: text/plain
Description: Annotated timeline for commendation by Jorge Garifuna at Dzone
Class: QGoogleVisualizationAPI
Google Visualization API (deprecated)
Author: By
Last change:
Date: 2008-07-19 14:01
Size: 1,463 bytes
 

Contents

Class file image Download
<html>
<head>
</head>
<body>
<?php

include_once 'config.inc.php';


$chart = new QAnnotatedtimelineGoogleGraph();
$chart    
        
//->ignoreContainer()
        
->addDrawProperties(
            array(
                
"title"=>'Company Performance',
                )
            )
        ->
addColumns(
            array(
                array(
'date''Date'),
                array(
'number''Sold Pencils'),
                array(
'number''Sold Pens'),
                array(
'string''title'),
                array(
'string''text'),            
                )
            )
        ->
setValues(
            array(
                array(
00'new Date(2008, 1 ,1)'),
                array(
0130000),
                array(
0240645),
                array(
10'new Date(2008, 1 ,2)'),
                array(
1114045),
                array(
1220374),
                array(
20'new Date(2008, 1 ,3)'),
                array(
2155022),
                array(
2250766),
                array(
30'new Date(2008, 1 ,4)'),
                array(
3175284),
                array(
3214334),
                array(
33'Out of Stock'),
                array(
34'Ran out of stock on pens at 4pm'),
                array(
40'new Date(2008, 1 ,5)'),
                array(
4146476),
                array(
4256467),
                array(
43'Bought Pens'),
                array(
44'Bought 200k pens at 11am'),
                array(
50'new Date(2008, 1 ,6)'),
                array(
5133322),
                array(
5239463),
                                        
            )
        );
echo 
$chart->render();

echo 
$chart->getReferenceLink();


?></body>
</html>