Location: PHPKode > projects > Monyet > plotter/jpgraph-2.2/src/Examples/imgmarkerex1.php
include ("../jpgraph.php");
include ("../jpgraph_line.php");
include ("../jpgraph_scatter.php");

$datay1 = array(4,26,15,44);

// Setup the graph
$graph = new Graph(300,200);

// Setup the tab
$graph->tabtitle->Set(' Year 2003 ' );

// Enable X-grid as well

// Use months as X-labels

// Create the plot
$p1 = new LinePlot($datay1);

// Use an image of favourite car as marker

// Displayes value on top of marker image
$p1->value->SetFormat('%d mil');
// Increase the margin so that the value is printed avove tje
// img marker

// Incent the X-scale so the first and last point doesn't
// fall on the edges




Return current item: Monyet