PHP Classes

File: sample.gauge.php

Recommend this page to a friend!
  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: 16 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(
0, 0, 'Memory'),
                array(
0, 1, 80),
                array(
1, 0, 'CPU'),
                array(
1, 1, 55),
                array(
2, 0, 'Network'),
                array(
2, 1, 68),
            )
        );
echo
$chart->render();

echo
$chart->getReferenceLink();

?>
</body>
</html>