<?php include ("jpgraph/jpgraph.php"); include ("jpgraph/jpgraph_line.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); $lineplot = new LinePlot($ydata); $graph->Add($lineplot); $graph->Stroke(); ?>