PHP Classes
Icontem

File: sample.anno.php


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend! ReTweet ReTweet Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Tom Schaefer  >  QGoogleVisualizationAPI  >  sample.anno.php  
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)
 

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>

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2009 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products