(Defined in: jpgraph_radar.php : 399)
Class usage and Overview
Create a new spider plot.
A spider plot can only be added to a SpiderGraph
See also related classes:
SpiderGraph
Class Methods
Specify color for the plot
Argument | Default | Description |
$aColor
| | Color for line |
$aFillColor
|
false
| Fill color |
Description:
Set the color for the plot. Note that you can also use the method SetFillColor() to specify the fill color. This non-orthogonality is in place to make the API be more flexible.
See also:
$spideplot->SetColor('darkred','lightblue');
// Set href targets for CSIM
Argument | Default | Description |
$aTargets
| | No description available |
$aAlts
|
null
| No description available |
Description:
No description available.
Deprecated. Turn filling on and off
Argument | Default | Description |
$f
|
true
| True=Use fill color and fill plot |
Description:
Deprecated. Turn filling on and off. When the fill color is pecified with either SetFillColor() or SetColor() this will tuen on the filling of the plot.
This method might be useful if you programatically have set the colro and later need to disable the fill.
$spiderplot->SetFillColor('lightblue');
// ... some code
// Turn off the fill
if( $doNotFillSpiderPlot )
$spiderplot->SetFill(false);
Specify fill color for plot
Argument | Default | Description |
$aColor
| | Color |
Description:
Specify fill color for plot.
Note. You can also use SetColor() to specify both fill and line color.
See also:
$spiderplot->SetFillColor('lightblue');
Specify legend text for this plot
Argument | Default | Description |
$legend
| | Legend string |
Description:
Specify legend text for this plot.
$spiderplot->SetLegend('Stress level');
Specify line style for the plot lines
Argument | Default | Description |
$aStyle
| | Line style |
Description:
The line style can be one of
- "solid"
- "dashed"
- "longdashed"
- "dotted"
$radarplot->SetLineStyle('dotted');
Set line weight
Argument | Default | Description |
$w
| | Line weight in pixels |
Description:
Set line weight.
$spiderplot->SetLineWeight(2);
Create a new Radar plot
Argument | Default | Description |
$data
| | Data array |
Description:
Creates a new radar plot
$radar = new RadarPlot($data);