Blame view

site/jpgraph/Examples/manscaleex2.php 410 Bytes
8ec98c9f   Guillaume   MAJ
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
  <?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(220,170);
  $graph->SetScale("textlin",3,35);
  
  $graph->title->Set('Manual scale, exact limits');
  $graph->title->SetFont(FF_FONT1,FS_BOLD);
  
  $line = new LinePlot($ydata);
  $graph->Add($line);
  
  // Output graph
  $graph->Stroke();
  
  ?>