<?php
require_once ('jpgraph/jpgraph.php');
require_once ('jpgraph/jpgraph_odo.php');
$graph = new OdoGraph(350,100);
$graph->SetShadow();
$odo1 = new Odometer();
$odo2 = new Odometer();
$odo1->SetColor("lightgray:1.9");
$odo2->SetColor("lightgray:1.9");
$odo2->scale->SetAngle(110,250);
$odo1->scale->label->SetFont(FF_ARIAL,FS_BOLD,10);
$odo2->scale->label->SetFont(FF_ARIAL,FS_BOLD,10);
$odo2->AddIndication(-15,0,'lightgray');
$odo2->AddIndication(100,115,'lightgray');
$odo1->needle->Set(70);
$odo2->needle->Set(70);
$odo1->needle->SetShadow();
$odo2->needle->SetShadow();
$row = new LayoutHor( array($odo1,$odo2) );
$graph->Add($row);
$graph->Stroke();
?> |