(Defined in: jpgraph_radar.php : 554)
Class usage and Overview
Spider graph. This graph type can only be used together with spider plots.
Class Methods
Add a spider plot to the spider graph
Argument | Default | Description |
$aPlot
| | No description available |
Description:
Add a spider plot to the spider graph
$spidergraph->Add($spiderplot1);
Hide tick marks on spider axis
Argument | Default | Description |
$aFlag
|
true
| True=Hide tick marks |
Description:
Hide tick marks on spider axis
$spidergraph->HideTickMarks();
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.
$spidergraph->SetCenter(0.6, 0.5);
Set background color for graph
Argument | Default | Description |
$aColor
| | No description available |
Description:
Set background color for graph
$spidergraph->SetColor('lightyellow');
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->SetPlotSize(0.7);
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:
$graph->SetPos(0.5,0.6);
Specify manual scale for spider graph
Argument | Default | Description |
$axtype
| | Axis type |
$ymin
|
1
| Min Y-value |
$ymax
|
1
| Max Y-value |
$dummy1
|
null
| No description available |
$dumy2
|
null
| No description available |
Description:
Specify axis type and min/max value for the scale.
$spidergraph->SetScale('lin',0,50);
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)
$radargraph->SetPlotSize(0.7);
Specify tick density
Argument | Default | Description |
$densy
|
TICKD_NORMAL
| Density |
$dummy1
|
null
| No description available |
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
$spidergraph->SetTickDensity(TICKD_VERYSPARSE);
Specify titles for all the spider axis
Argument | Default | Description |
$aTitleArray
| | No description available |
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.
$spidergraph->SetTitles(array('Jan','Feb','March','Apr'));
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.
$spidergraph->ShowMinorTickMArks();
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:
$spidergraph->Stroke();
//("Minimum data $min (Radar plots should only be used when all data points > 0)");
Description:
No description available.
Description:
No description available.
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:
$radargraph = new RadarGraph(300,300);