Login   Register  
PHP Classes
elePHPant
Icontem

File: sample.intensitymap.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.intensitymap.php  >  Download  
File: sample.intensitymap.php
Role: Example script
Content type: text/plain
Description: Sample intensity map
Class: QGoogleVisualizationAPI
Google Visualization API (deprecated)
Author: By
Last change: chg
Date: 2008-07-14 13:35
Size: 982 bytes
 

Contents

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

<body>
<?php

include_once 'config.inc.php';


$chart = new QIntensitymapGoogleGraph;
$chart    ->addDrawProperties(
            array(
                
"title"=>'Company Performance',
                )
            )
        ->
addColumns(
            array(
                array(
'string''''Country'),
                array(
'number''Population (mil)''a'),
                array(
'number''Area (km2)''b'),
                )
            )
        ->
setValues(
            array(
                array(
00'CN'),
                array(
011324),
                array(
029640821),
                array(
10'IN'),
                array(
111133),
                array(
123287263),
                array(
20'US'),
                array(
21304),
                array(
229629091),
                array(
30'ID'),
                array(
31232),
                array(
321904569),
                array(
40'BR'),
                array(
41187),
                array(
428514877),                    
            )
        );
echo 
$chart->render();

echo 
$chart->getReferenceLink();


?></body>
</html>