CLASS RadarGraph EXTENDS Graph (Defined in: jpgraph_radar.php : 428)

RadarGraph | Graph
Add() HideTickMarks() RadarGraph() SetCenter() SetColor() SetPlotSize() SetPos() SetScale() SetSize() SetTickDensity() SetTitles() ShowMinorTickmarks() Stroke() SupressTickMarks() | 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
Spider graph. This graph type can only be used together with spider plots.

Class Methods

function Add(&$splot)
Add a spider plot to the spider graph

Argument | Default | Description
--- | --- | ---
&$splot |  | Plot to add (instance of SpiderPlot)

Description
Add a spider plot to the spider graph

Example

$spidergraph->Add($spiderplot1);

function HideTickMarks($aFlag)
Hide tick marks on spider axis

Argument | Default | Description
--- | --- | ---
$aFlag | true | True=Hide tick marks

Description
Hide tick marks on spider axis

Example

$spidergraph->HideTickMarks();

function RadarGraph($width,$height,$cachedName,$timeout,$inline)
Construct a new radar graph

Argument | Default | Description
--- | --- | ---
$width | 300 | Imaghe width
$height | 200 | Image Height
$cachedName | "" | Cache file name
$timeout | 0 | Cache timout (in minutes)
$inline | 1 | Inline image

Description
See Graph::Graph().
See also
Graph::Graph

Example

$radargraph = new RadarGraph(300,300);

function SetCenter($px,$py)
Specify position for center of spider graph

Argument | Default | Description
--- | --- | ---
$px |  | Fraction of width
$py | 0.5 | Fraction of height

Description
Specify the position for the center of the spider graph in fractions of the image width and height.

Example

$spidergraph->SetCenter(0.6, 0.5);

function SetColor($c)
Set background color for graph

Argument | Default | Description
--- | --- | ---
$c |  | Color

Description
Set background color for graph

Example

$spidergraph->SetColor('lightyellow');

function SetPlotSize($aSize)
Specify size of spider graph

Argument | Default | Description
--- | --- | ---
$aSize |  | Fraction of image size

Description
DEPRECATED
Use SetSize() instead
Specify the length of the axis of the spider plot as fraction of the min(height,width)
See also
RadarGraph::SetCenter and RadarGraph::SetSize

Example

$radargraph->SetPlotSize(0.7);

function SetPos($px,$py)
Alias for Set Center. Specify position of the center of the graph

Argument | Default | Description
--- | --- | ---
$px |  | Fraction of width
$py | 0.5 | Fraction of height

Description
Alias for SetCenter. Specify position for the center of the graph.
See also
RadarGraph::SetCenter

Example

$graph->SetPos(0.5,0.6);

function SetScale($axtype,$ymin,$ymax)
Specify manual scale for spider graph

Argument | Default | Description
--- | --- | ---
$axtype |  | Axis type
$ymin | 1 | Min Y-value
$ymax | 1 | Max Y-value

Description
Specify axis type and min/max value for the scale.

Example

$spidergraph->SetScale('lin',0,50);

function SetSize($aSize)
Specify the length of the axis

Argument | Default | Description
--- | --- | ---
$aSize |  | Fraction of image size

Description
pecify the length of the axis of the spider plot as fraction of the min(height,width)

Example

$radargraph->SetPlotSize(0.7);

function SetTickDensity($densy)
Specify tick density

Argument | Default | Description
--- | --- | ---
$densy | TICKD_NORMAL | Density

Description
Tick density can be specified as

- TICKD_DENSE, Tick marks close
- TICKD_NORMAL, Tick marks as normal
- TICKD_SPARSE, Tick marks sparse
- TICKD_VERYSPARSE, TIck marks very sparse

Example

$spidergraph->SetTickDensity(TICKD_VERYSPARSE);

function SetTitles($title)
Specify titles for all the spider axis

Argument | Default | Description
--- | --- | ---
$title |  | Array of titles

Description
Set the title for the axis in the spider graph. If no titles have been specified then they will be numbered from 1 to maximum number of axis.

Example

$spidergraph->SetTitles(array('Jan','Feb','March','Apr'));

function ShowMinorTickmarks($aFlag)
Show minor tick marks

Argument | Default | Description
--- | --- | ---
$aFlag | true | True=Show minor tick marks

Description
By default the minor tick marks are hidden. This method turns them on.

Example

$spidergraph->ShowMinorTickMArks();

function Stroke($aStrokeFileName)
Stroke the Spider graph

Argument | Default | Description
--- | --- | ---
$aStrokeFileName | "" | Filename

Description
Stroke the spider graph and send it back to the browser or write it to a file if a filename have been specified. This is normally the last method call in your script.
See also
Graph::Stroke

Example

$spidergraph->Stroke();

function SupressTickMarks($f)
Suppress all tick marks on the spider axis

Argument | Default | Description
--- | --- | ---
$f | true | True=Hide tick marks

Description
Suppress all tick marks on the spider axis
See also
RadarGraph::ShowMinorTickmarks

Example

$spidergraph->SupressTickMarks();