Location: PHPKode > projects > T-77.com Operational Management System > omis/src/Examples/example0.php
<?php
include ("file:///Teiz%20X/Users/teiz/Desktop/yaps/jpgraph-1.13/src/jpgraph.php");
include ("file:///Teiz%20X/Users/teiz/Desktop/yaps/jpgraph-1.13/src/jpgraph_line.php");

// Some data
$ydata = array(11,3,8,12,5,1,9,13,5,7);

// Create the graph. These two calls are always required
$graph = new Graph(350,250,"auto");	
$graph->SetScale("textlin");

// Create the linear plot
$lineplot=new LinePlot($ydata);
$lineplot->SetColor("blue");

// Add the plot to the graph
$graph->Add($lineplot);

// Display the graph
$graph->Stroke();
?>
Return current item: T-77.com Operational Management System