CLASS PieGraph EXTENDS Graph
(Defined in: jpgraph_pie.php : 611)
 PieGraph  Graph 
 Add() 
 PieGraph() 
 SetColor() 
 Stroke() 
Add() 
 AddBand() 
 AddLine() 
 AddText() 
 AddY2() 
 AdjBackgroundImage() 
 AdjImage() 
 GetHTMLImageMap() 
 Graph() 
 SetAngle() 
 SetAxisStyle() 
 SetBackgroundImage() 
 SetBox() 
SetColor() 
 SetFrame() 
 SetGridDepth() 
 SetMargin() 
 SetMarginColor() 
 SetScale() 
 SetShadow() 
 SetTickDensity() 
 SetY2Scale() 
Stroke() 
 StrokeCSIM() 
 StrokeFrameBackground() 
 

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

ArgumentDefaultDescription
&$pie  Pieplot to add

Description
Add a pieplot to the canvas 

Example

$piegraph = new PieGraph(300,400);
$pieplot = new PiePlot($ydata);
$piegraph->Add($pieplot);

 

 

function PieGraph($width,$height,$cachedName,$timeout,$inline)
//---------------// CONSTRUCTOR

ArgumentDefaultDescription
$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

Example

$piegraph = new PieGraph(300,400);

 

 

function SetColor($c)
Set the background color. Synonym to SetMarginColor()

ArgumentDefaultDescription
$c  Color

Description
Set the background color. Synonym to SetMarginColor() 
 
See also
Graph::Graph

Example

$piegraph->SetColor('gray');

 

 

function Stroke($aStrokeFileName)
// Method description

ArgumentDefaultDescription
$aStrokeFileName "" Filename

Description
Stroke the piegraph to the browser or to a specified file if specified. Works exactly the same as Graph::Stroke()  

Example

...
$piegraph->Stroke()