Login   Register  
PHP Classes
elePHPant
Icontem

File: demos/003.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  >  d3Google  >  demos/003.php  >  Download  
File: demos/003.php
Role: Example script
Content type: text/plain
Description: How to use fusion tables or spreadheets?
Class: d3Google
Generate JavaScript to show Google charts and maps
Author: By
Last change:
Date: 1 year ago
Size: 594 bytes
 

Contents

Class file image Download
<?php 

include_once '../d3.classes.inc.php';
include_once 
'../google.classes.inc.php';
include_once 
'../element.php';

echo 
func()->add(
    
google()->visualization->drawChart(obj(array(
        
"containerId"         => "visualization_div",
        
"dataSourceUrl"     => "https://spreadsheets.google.com/a/google.com/tq?key=pCQbetd-CptGXxxQIG7VFIQ&pub=1",
        
"query"             => "SELECT A,D WHERE D > 100 ORDER BY D",
        
"refreshInterval"     => 5,
        
"chartType"         => "Table",
        
"options"             => array(
            
"alternatingRowStyle" => true,
            
"showRowNumber"  => true
        
)
    ) ) ) 
)->
getVar("drawVisualization");