<?php
include ("../jpgraph.php");
include ("../jpgraph_line.php");

$ydata = array(2,3,4,8);
$sildid=array("Juku", "Kati", "Mati", "Sass" );

$graph = new Graph(300,200,"auto");
$graph->SetScale("textlin");
//$graph->img->SetMargin(40,20,30,40);
$graph->title->Set("Andmed kuude kaupa");

$graph->xaxis->title->Set("Myyk");
$graph->yaxis->title->Set("Kuud");
$graph->xaxis->SetTickLabels($sildid);

$lineplot=new LinePlot($ydata);

$graph->Add($lineplot);
$graph->Stroke();
?>