<?php
$Id: smallstaticbandsex7.php,v 1.1 2002/09/01 21:51:08 aditus Exp $
require_once ('jpgraph/jpgraph.php');
require_once ('jpgraph/jpgraph_bar.php');
$datay=array(10,29,3,6);
$graph = new Graph(200,150);
$graph->SetScale("textlin");
$graph->SetMargin(25,10,20,20);
$graph->yscale->SetGrace(10);
$bplot = new BarPlot($datay);
$bplot->SetFillColor("lightblue");
$graph->xaxis->SetPos("min");
$graph->ygrid->Show(false);
$graph->Add($bplot);
$band = new PlotBand(HORIZONTAL,BAND_HLINE,15,35,'khaki4');
$band->ShowFrame(false);
$graph->Add($band);
$graph->title->SetFont(FF_ARIAL,FS_BOLD,10);
$graph->title->SetColor('darkred');
$graph->title->Set('BAND_HLINE');
$graph->Stroke();
?> |