Login   Register  
PHP Classes
elePHPant
Icontem

File: sample.gauge.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.gauge.php  >  Download  
File: sample.gauge.php
Role: Example script
Content type: text/plain
Description: Gauge Sample
Class: QGoogleVisualizationAPI
Google Visualization API (deprecated)
Author: By
Last change:
Date: 6 years ago
Size: 517 bytes
 

Contents

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

<body>
<?php

include_once 'config.inc.php';

$chart = new QGaugeGoogleGraph;
$chart    ->addColumns(
            array(
                array(
'string''Label'),
                array(
'number''Value')
                )
            )
        ->
setValues(
            array(
                array(
00'Memory'),
                array(
0180),
                array(
10'CPU'),
                array(
1155),
                array(
20'Network'),
                array(
2168),
            )
        );
echo 
$chart->render();

echo 
$chart->getReferenceLink();

?>
</body>
</html>