Location: PHPKode > projects > Monyet > plotter/jpgraph-2.2/src/Examples/canvasex01.php
// $Id: canvasex01.php,v 1.3 2002/10/23 08:17:23 aditus Exp $
include "../jpgraph.php";
include "../jpgraph_canvas.php";

// Setup a basic canvas we can work 
$g = new CanvasGraph(400,300,'auto');

// We need to stroke the plotarea and margin before we add the
// text since we otherwise would overwrite the text.

// Draw a text box in the middle
$txt="This\nis\na TEXT!!!";
$t = new Text($txt,200,10);

// How should the text box interpret the coordinates?

// How should the paragraph be aligned?

// Add a box around the text, white fill, black border and gray shadow

// Stroke the text

// Stroke the graph


Return current item: Monyet