Initial Commit of AgileBill Open Source
This commit is contained in:
40
includes/pear/Image/docs/examples/simple_graph.php
Normal file
40
includes/pear/Image/docs/examples/simple_graph.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
/**
|
||||
* Usage example for Image_Graph.
|
||||
*
|
||||
* Main purpose:
|
||||
* Demonstrate how to use simple graph
|
||||
*
|
||||
* Other:
|
||||
* None specific
|
||||
*
|
||||
* $Id: simple_graph.php,v 1.2 2005/07/28 12:05:14 nosey Exp $
|
||||
*
|
||||
* @package Image_Graph
|
||||
* @author Jesper Veggerby <pear.nosey@veggerby.dk>
|
||||
*/
|
||||
|
||||
include('Image/Graph/Simple.php');
|
||||
|
||||
$Data = array(
|
||||
'Dogs' => 3,
|
||||
'Cats' => 1,
|
||||
'Parrots' => 4,
|
||||
'Mice' => 5
|
||||
);
|
||||
|
||||
// create the graph
|
||||
$Graph =& Image_Graph_Simple::factory(
|
||||
400,
|
||||
300,
|
||||
'Image_Graph_Plot_Smoothed_Area',
|
||||
$Data,
|
||||
'Simple Graph Example',
|
||||
'gray',
|
||||
'blue@0.2',
|
||||
'Verdana'
|
||||
);
|
||||
|
||||
// output the Graph
|
||||
$Graph->done();
|
||||
?>
|
Reference in New Issue
Block a user