<?php
require_once ('jpgraph/jpgraph.php');
require_once ('jpgraph/jpgraph_odo.php');
$graph = new OdoGraph(250,200);
$graph->title->Set("Result for 2002");
$graph->title->SetColor("white");
$graph->title->SetFont(FF_ARIAL,FS_BOLD,14);
$graph->subtitle->Set("New York Office");
$graph->subtitle->SetColor("white");
$graph->caption->Set("Figure 1.This is a very, very\nlong text with multiples lines\nthat are added as a caption.");
$graph->caption->SetColor("white");
$graph->SetMarginColor("khaki:0.6");
$graph->SetColor("khaki");
$odo = new Odometer();
$odo->SetColor('white');
$odo->scale->label->SetColor("darkred");
$odo->needle->SetFillColor("yellow");
$odo->needle->Set(30);
$graph->Add($odo);
$graph->Stroke();
?> |