CLASS
PieGraph EXTENDS
Graph
(Defined in: jpgraph_pie.php : 611) Class usage and Overview
The canvas for use with PiePlots. You add pie plots by calling the Add() method.
You can add several PiePlots by adjusting their size and positioning each PiePlot so it doesn't overlap eachother.
See also related classes:
PiePlot and PiePlot3D
Class Methods
function Add(&$pie)
//---------------// PUBLIC METHODS
Argument | Default | Description |
&$pie
| | Pieplot to add |
Description
Add a pieplot to the canvas
$piegraph = new PieGraph(300,400);
$pieplot = new PiePlot($ydata);
$piegraph->Add($pieplot);
function PieGraph($width,$height,$cachedName,$timeout,$inline)
//---------------// CONSTRUCTOR
Argument | Default | Description |
$width
|
300
| Width of graph |
$height
|
200
| Height of graph |
$cachedName
|
""
| Cache file name |
$timeout
|
0
| Cache timeout in s |
$inline
|
1
| Should the image be inline. |
Description
See Graph::Graph()
See also
Graph::Graph
$piegraph = new PieGraph(300,400);
function SetColor($c)
Set the background color. Synonym to SetMarginColor()
Argument | Default | Description |
$c
| | Color |
Description
Set the background color. Synonym to SetMarginColor()
See also
Graph::Graph
$piegraph->SetColor('gray');
function Stroke($aStrokeFileName)
// Method description
Argument | Default | Description |
$aStrokeFileName
|
""
| Filename |
Description
Stroke the piegraph to the browser or to a specified file if specified. Works exactly the same as Graph::Stroke()
...
$piegraph->Stroke()