<?php
include ("jpgraph/jpgraph.php");
include ("jpgraph/jpgraph_bar.php");
$graph = new Graph(250, 200, "auto");
$graph->SetFrame(true);
$graph->SetScale("textlin");
$graph->img->SetMargin(30, 30, 30, 30);
$ydata = array(10, 4, 7, 9, 1, 3);
$barplot = new BarPlot($ydata);
$graph->Add($barplot);
$graph->Stroke();
?>