Login   Register  
PHP Classes
elePHPant
Icontem

File: sample.motion.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.motion.php  >  Download  
File: sample.motion.php
Role: Example script
Content type: text/plain
Description: Motion Chart Sample
Class: QGoogleVisualizationAPI
Google Visualization API (deprecated)
Author: By
Last change:
Date: 2008-07-22 11:32
Size: 1,221 bytes
 

Contents

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

<body>
<?php

include_once 'config.inc.php';


$chart = new QMotionchartGoogleGraph;
$chart    ->addDrawProperties(
            array(
                
"title"=>'Company Performance',
                )
            )
        ->
addColumns(
            array(
                array(
'string''Department'),
                array(
'number''Year'),
                array(
'number''Sales'),
                array(
'number''Expenses'),
                )
            )
        ->
setValues(
            array(
                array(
00'Dogs'),
                array(
011995),
                array(
021000),
                array(
03300),
                array(
10'Cats'),
                array(
111995),
                array(
12950),
                array(
13200),
                array(
20'Dogs'),
                array(
211996),
                array(
221200),
                array(
23400),
                array(
30'Cats'),
                array(
311996),
                array(
32900),
                array(
33150),
                array(
40'Dogs'),
                array(
411997),
                array(
421250),
                array(
43800),
                array(
50'Cats'),
                array(
511997),
                array(
52200),
                    
            )
        );
echo 
$chart->render();

echo 
$chart->getReferenceLink();


?></body>
</html>