Line | |
---|
1 | <?php // content="text/plain; charset=utf-8" |
---|
2 | require_once ('jpgraph/jpgraph.php'); |
---|
3 | require_once ('jpgraph/jpgraph_canvas.php'); |
---|
4 | |
---|
5 | // Create the graph. |
---|
6 | $graph = new CanvasGraph(350,200); |
---|
7 | |
---|
8 | $t1 = new Text("This is a text with more text"); |
---|
9 | $t1->SetPos(0.05,0.5); |
---|
10 | $t1->SetOrientation("h"); |
---|
11 | $t1->SetFont(FF_FONT1,FS_NORMAL); |
---|
12 | $t1->SetBox("white","black",'gray'); |
---|
13 | $t1->SetColor("black"); |
---|
14 | $graph->AddText($t1); |
---|
15 | |
---|
16 | $graph->Stroke(); |
---|
17 | |
---|
18 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.