<?php
include ('jpgraph/jpgraph.php');
include ('jpgraph/jpgraph_line.php');
$datay = array(7.5,9.2,6.3,5.8,2.9);
$graph = new Graph(500,300);
$graph->SetScale('linlin');
$graph->SetMarginColor('white');
$graph->title->Set('Grind line styles');
$graph->title->SetFont(FF_ARIAL,FS_BOLD,12);
$graph->xaxis->SetColor('darkgreen');
$graph->ygrid->Show(true,true);
$graph->ygrid->SetColor('brown@0.7','gray');
$graph->ygrid->SetWeight(2,1);
$graph->ygrid->SetStyle('solid','dotted');
$graph->xgrid->Show(true,true);
$graph->xgrid->SetColor('darkgreen@0.8','gray');
$graph->xgrid->SetWeight(2,1);
$graph->xgrid->SetStyle('solid','dashed');
$graph->SetGridDepth(DEPTH_FRONT);
$l1 = new LinePlot($datay);
$l1->SetColor('lightblue');
$l1->SetWeight(3);
$graph->Add($l1);
$graph->Stroke();
?> |