Class PieGraph Extends Graph
(Defined in: jpgraph_pie.php : 1210)
 
 PieGraph  Graph 
 Add() 
 SetAntiAliasing() 
 SetColor() 
 Stroke() 
 __construct() 
 Add() 
 AddBand() 
 AddLine() 
 AddText() 
 AddY() 
 AddY2() 
 CheckCSIMCache() 
 GetCSIMImgHTML() 
 GetHTMLImageMap() 
 Set3DPerspective() 
 Set90AndMargin() 
 SetAlphaBlending() 
 SetAngle() 
 SetAxisLabelBackground() 
 SetAxisStyle() 
 SetBackgroundCFlag() 
 SetBackgroundCountryFlag() 
 SetBackgroundGradient() 
 SetBackgroundImage() 
 SetBackgroundImageMix() 
 SetBackgroundImagePos() 
 SetBox() 
 SetClipping() 
 SetColor() 
 SetCSIMImgAlt() 
 SetFrame() 
 SetFrameBevel() 
 SetGridDepth() 
 SetIconDepth() 
 SetImgFormat() 
 SetMargin() 
 SetMarginColor() 
 SetScale() 
 SetShadow() 
 SetTextScaleAbsCenterOff() 
 SetTickDensity() 
 SetTitleBackground() 
 SetTitleBackgroundFillStyle() 
 SetUserFont() 
 SetUserFont1() 
 SetUserFont2() 
 SetUserFont3() 
 SetY2OrderBack() 
 SetY2Scale() 
 SetYDeltaDist() 
 SetYScale() 
 Stroke() 
 StrokeCSIM() 
 StrokeCSIMImage() 
 StrokeFrameBackground() 
 StrokeStore() 
 __construct() 
 

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

 

PieGraph ::
Add($aObj)
Add object to the pie graph

ArgumentDefaultDescription
$aObj  Object to add

Description:
Add a pieplots or text object to the pie graph. You can specify either a single object or an array. If you specify an array all object in the array must be of the same type.  

Example:

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

 

PieGraph ::
SetAntiAliasing($aFlg)
Enable/disable anti-alias for Pie Graphs

ArgumentDefaultDescription
$aFlg true true=enable anti-aliasing

Description:
Enable/disable anti-alias for Pie Graphs. This makes for much nicer looking PieGraphs. Please note that enabling anti-alias imposes some restrictions:  

Example:

$piegraph->SetAntiAlias();

 

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

ArgumentDefaultDescription
$c  Color

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

Example:

$piegraph->SetColor('gray');

 

PieGraph ::
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()

 

PieGraph ::
__construct($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:

Example:

$piegraph = new PieGraph(300,400);