source: trunk/xgraph/jpgraph/Examples/rotex5.php @ 42

Last change on this file since 42 was 42, checked in by marrucho, 10 years ago
File size: 508 bytes
Line 
1<?php // content="text/plain; charset=utf-8"
2require_once ('jpgraph/jpgraph.php');
3require_once ('jpgraph/jpgraph_line.php');
4
5$ydata = array(12,17,22,19,5,15);
6
7$graph = new Graph(270,170);
8$graph->SetMargin(30,90,30,30);
9$graph->SetScale("textlin");
10
11$graph->img->SetAngle(-30);
12$graph->img->SetCenter(30,170-30);
13
14$line = new LinePlot($ydata);
15$line->SetLegend('2002');
16$line->SetColor('darkred');
17$line->SetWeight(2);
18$graph->Add($line);
19
20// Output graph
21$graph->Stroke();
22
23?>
24
25
Note: See TracBrowser for help on using the repository browser.