Added JPGraph v3.5.0b1
This commit is contained in:
24
includes/jpgraph/src/Examples/rotex2.php
Normal file
24
includes/jpgraph/src/Examples/rotex2.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php // content="text/plain; charset=utf-8"
|
||||
require_once ('jpgraph/jpgraph.php');
|
||||
require_once ('jpgraph/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(90);
|
||||
|
||||
$line = new LinePlot($ydata);
|
||||
$line->SetLegend('2002');
|
||||
$line->SetColor('darkred');
|
||||
$line->SetWeight(2);
|
||||
$graph->Add($line);
|
||||
|
||||
// Output graph
|
||||
$graph->Stroke();
|
||||
|
||||
?>
|
||||
|
||||
|
Reference in New Issue
Block a user