PHP Classes

File: sample_gauge.php

Recommend this page to a friend!
  Classes of Tom Schaefer  >  QGoogleVisualizationAPI 2009  >  sample_gauge.php  >  Download  
File: sample_gauge.php
Role: Example script
Content type: text/plain
Description: Gauge Sample
Class: QGoogleVisualizationAPI 2009
Generate charts with Google Visualization API
Author: By
Last change:
Date: 7 years ago
Size: 908 bytes


Class file image Download

include_once 'Google.merge.v_1_0.php';

$v = new Google_Visualization("Gauge");
$c = new Google_Config("Gauge");

$o = new Google_Data_Base;

// config


// data

$o->addNumberCellToRow(120, "400.0");
$o->addNumberCellToRow(80, "400.0");


echo $v->render();
    <div id="chart"></div>
    <input type='button' value='Go Faster' onclick='changeTemp(1)' />
    <input type='button' value='Slow down' onclick='changeTemp(-1)' />