source: trunk/xgraph/jpgraph/Examples/filledlineex01.php

Last change on this file was 42, checked in by marrucho, 10 years ago
File size: 611 bytes
Line 
1<?php // content="text/plain; charset=utf-8"
2require_once ('jpgraph/jpgraph.php');
3require_once ('jpgraph/jpgraph_line.php');
4
5$datay = array(1.23, 1.9, 1.6, 3.1, 3.4, 2.8, 2.1, 1.9);
6$graph = new Graph(300,200);
7$graph->SetScale('textlin');
8
9$graph->img->SetMargin(40,40,40,40);
10$graph->SetShadow();
11
12$graph->title->Set("Example of filled line plot");
13$graph->title->SetFont(FF_FONT1,FS_BOLD);
14
15$p1 = new LinePlot($datay);
16$p1->SetFillColor("orange");
17$p1->mark->SetType(MARK_FILLEDCIRCLE);
18$p1->mark->SetFillColor("red");
19$p1->mark->SetWidth(4);
20$graph->Add($p1);
21
22$graph->Stroke();
23?>
Note: See TracBrowser for help on using the repository browser.