HB/onyx2/include/jpgraph/Examples/rotex1.php

25 lines
388 B
PHP
Raw Normal View History

2008-11-08 11:00:00 +00:00
<?php
include ("../jpgraph.php");
include ("../jpgraph_line.php");
$ydata = array(12,17,22,19,5,15);
$graph = new Graph(270,170);
$graph->SetMargin(30,90,30,30);
$graph->SetScale("textlin");
$graph->img->SetAngle(45);
$line = new LinePlot($ydata);
$line->SetLegend('2002');
$line->SetColor('darkred');
$line->SetWeight(2);
$graph->Add($line);
// Output graph
$graph->Stroke();
?>