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

Last change on this file since 42 was 42, checked in by marrucho, 10 years ago
File size: 441 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$line = new LinePlot($ydata);
12$line->SetLegend('2002');
13$line->SetColor('darkred');
14$line->SetWeight(2);
15$graph->Add($line);
16
17// Output graph
18$graph->Stroke();
19
20?>
21
22
Note: See TracBrowser for help on using the repository browser.