~pablocapeluto/cds-php/devel-3.1

« back to all changes in this revision

Viewing changes to jpgraph/src/Examples/rotex5.php

  • Committer: pcapeluto at gmail
  • Date: 2010-08-20 17:51:08 UTC
  • Revision ID: pcapeluto@gmail.com-20100820175108-jyi8dbyj15uy9p4i
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
include ("../jpgraph.php");
 
3
include ("../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