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("a good\nas you can see right now per see\nThis is a text with\nseveral lines\n"); |
---|
9 | $t1->SetPos(0.05,100); |
---|
10 | $t1->SetFont(FF_FONT1,FS_NORMAL); |
---|
11 | $t1->SetBox("white","black",true); |
---|
12 | $t1->ParagraphAlign("right"); |
---|
13 | $t1->SetColor("black"); |
---|
14 | $graph->AddText($t1); |
---|
15 | |
---|
16 | $graph->Stroke(); |
---|
17 | |
---|
18 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.