Login   Register  
PHP Classes
elePHPant
Icontem

File: sample.scatter.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.scatter.php  >  Download  
File: sample.scatter.php
Role: Example script
Content type: text/plain
Description: Scatter Sample for commenation by Jorge Garifuna at Digg
Class: QGoogleVisualizationAPI
Google Visualization API (deprecated)
Author: By
Last change:
Date: 6 years ago
Size: 867 bytes
 

Contents

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

<body>
<?php

include_once 'config.inc.php';


$chart = new QScatterchartGoogleGraph;
$chart    ->addDrawProperties(
            array(
                
"width" => 400,
                
"height" => 240,
                
"titleX" => "Age",
                
"titleY" => "Weight",
                
"legend" => "none",
                
"pointSize" => 5
            
)
        )
        ->
addColumns(
            array(
                array(
'number''Age'),
                array(
'number''Weight')
                )
            )
        ->
setValues(
            array(
                array(
008),
                array(
0112),
                array(
104),
                array(
115.5),
                array(
2011),
                array(
2114),
                array(
304),
                array(
315),
                array(
403),
                array(
413.5),
                array(
506.5),
                array(
517),
            )
        );
echo 
$chart->render();

echo 
$chart->getReferenceLink();


?></body>
</html>