CLASS PolarGraph EXTENDS Graph
(Defined in: jpgraph_polar.php : 640)
 PolarGraph  Graph 
 PolarGraph() 
 Set90AndMargin() 
 SetDensity() 
 SetPlotSize() 
 SetScale() 
 SetType() 
 Stroke() 
 Add() 
 AddBand() 
 AddLine() 
 AddText() 
 AddY() 
 AddY2() 
 AdjBackgroundImage() 
 AdjImage() 
 CheckCSIMCache() 
 GetHTMLImageMap() 
 Graph() 
 Set3DPerspective() 
Set90AndMargin() 
 SetAlphaBlending() 
 SetAngle() 
 SetAxisLabelBackground() 
 SetAxisStyle() 
 SetBackgroundCFlag() 
 SetBackgroundCountryFlag() 
 SetBackgroundGradient() 
 SetBackgroundImage() 
 SetBackgroundImageMix() 
 SetBox() 
 SetClipping() 
 SetColor() 
 SetFrame() 
 SetFrameBevel() 
 SetGridDepth() 
 SetIconDepth() 
 SetImgFormat() 
 SetMargin() 
 SetMarginColor() 
SetScale() 
 SetShadow() 
 SetTextScaleAbsCenterOff() 
 SetTickDensity() 
 SetTitleBackground() 
 SetTitleBackgroundFillStyle() 
 SetY2OrderBack() 
 SetY2Scale() 
 SetYDeltaDist() 
 SetYScale() 
Stroke() 
 StrokeCSIM() 
 StrokeFrameBackground() 
 

Class usage and Overview
Represent a polar graph. Accessible properties are

 

See also related classes:
PolarAxis

 


Class Methods

 

 

function PolarGraph($aWidth,$aHeight,$aCachedName,$aTimeOut,$aInline)
Construct a new graph

ArgumentDefaultDescription
$aWidth 300 Width (in pixels)
$aHeight 200 Height (in pixels)
$aCachedName "" Cache name
$aTimeOut 0 Cache timeout
$aInline true Inline flag (DEPRECATED)

Description
Construct a new Polar Graph. This is completely analog to the standard Graph() creation and follows the exactly same pattern.  

Example

$polargraph = new PolarGraph(300,500);

 

 

function Set90AndMargin($lm,$rm,$tm,$bm)
Rotate the polar graph 90 degrees

ArgumentDefaultDescription
$lm 0 Left margin
$rm 0 Right Margin
$tm 0 Top margin
$bm 0 Bottom margin

Description
Rotate the polar graph 90 degrees 

Example

$polargraph->Set90AndMargin(40,40,40,40);

 

 

function SetDensity($aDense)
Specify density for the radius axis

ArgumentDefaultDescription
$aDense  Density

Description
This is analog to the density specification for the X, and Y-scale s for the standard X-Y-plots. This specifies how close the autoscaling algorithm will place the tick marks to each other. The tick density can be one of By default the radius density os set to TICKD_DENSE  

Example

// Slightly fewer ticks than default
$polargraph->SetDensity(TICKD_NORMAL);

 

 

function SetPlotSize($w,$h)
Alternative way to specify size of the plot area

ArgumentDefaultDescription
$w  Width
$h  Height

Description
You can specify the plot area size an posiion in the graph in two ways. The frst is the standard way of specifying the margins on the sides with SetMargins() method. This method centers a plot area with the specified width and height inthe middle of the graph, it is basically a short form for SetMargins( $graphwidth-($w/2),$graphwidth-($w/2), $graphheight-($h/2),$graphheight-($h/2));  

Example

$polargraph->SetPlotSize(200,250);

 

 

function SetScale($aScale,$rmax)
Specify scale type (linear or log)

ArgumentDefaultDescription
$aScale  Linear "lin" or logarithmic "log" scale
$rmax 0 Manual maximum value

Description
Specify scale type (linear or log) for the radius scale. A linear scale is specified as 'lin' and a logarithmic scale is specified as 'log' 

Example

// Specify a logarithmic scale for the radius
$polargraph->SetScale('log');

 

 

function SetType($aType)
Specify if the graphs should be 360 or 180

ArgumentDefaultDescription
$aType  Type

Description
Specify if the polargraph should be a full 360 degrees or just 180 degrees. The possible values for type are By default the graph is a full 260 degrees. 

Example

$polargraph->SetType(POLAR_360);

 

 

function Stroke($aStrokeFileName)
Send graph back to browser or file

ArgumentDefaultDescription
$aStrokeFileName "" File name

Description
Send a graph back to browser or to a file. This must be the last call in your script.  

Example

$polargraph->Stroke();