Location: PHPKode > projects > Monyet > plotter/jpgraph-2.2/src/Examples/bargradex1.php
// Example for use of JpGraph, 
// ljp, 01/03/01 20:32
include ("../jpgraph.php");
include ("../jpgraph_bar.php");

// We need some data

// Setup the graph. 
$graph = new Graph(400,200,"auto");	

// Set up the title for the graph
$graph->title->Set("Bar gradient (Left reflection)");

// Setup font for axis

// Show 0 label on Y-axis (default is not to show)

// Setup X-axis labels

// Create the bar pot
$bplot = new BarPlot($datay);

// Setup color for gradient fill style 

// Set color for the frame of each bar

// Finally send the graph to the browser
Return current item: Monyet