Class RadarPlot
(Defined in: jpgraph_radar.php : 399)
 
 RadarPlot 
 SetColor() 
 SetCSIMTargets() 
 SetFill() 
 SetFillColor() 
 SetLegend() 
 SetLineStyle() 
 SetLineWeight() 
 __construct() 
 

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

 

RadarPlot ::
SetColor($aColor, $aFillColor)
Specify color for the plot

ArgumentDefaultDescription
$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:

Example:

$spideplot->SetColor('darkred','lightblue');

 

RadarPlot ::
SetCSIMTargets($aTargets, $aAlts)
// Set href targets for CSIM

ArgumentDefaultDescription
$aTargets  No description available
$aAlts null No description available

Description:
No description available.

 

RadarPlot ::
SetFill($f)
Deprecated. Turn filling on and off

ArgumentDefaultDescription
$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. 

Example:

$spiderplot->SetFillColor('lightblue');

// ... some code

// Turn off the fill
if( $doNotFillSpiderPlot )
    
$spiderplot->SetFill(false);


 

RadarPlot ::
SetFillColor($aColor)
Specify fill color for plot

ArgumentDefaultDescription
$aColor  Color

Description:
Specify fill color for plot. Note. You can also use SetColor() to specify both fill and line color. 
 
See also:

Example:

$spiderplot->SetFillColor('lightblue');

 

RadarPlot ::
SetLegend($legend)
Specify legend text for this plot

ArgumentDefaultDescription
$legend  Legend string

Description:
Specify legend text for this plot. 

Example:

$spiderplot->SetLegend('Stress level');

 

RadarPlot ::
SetLineStyle($aStyle)
Specify line style for the plot lines

ArgumentDefaultDescription
$aStyle  Line style

Description:
The line style can be one of  

Example:

$radarplot->SetLineStyle('dotted');

 

RadarPlot ::
SetLineWeight($w)
Set line weight

ArgumentDefaultDescription
$w  Line weight in pixels

Description:
Set line weight. 

Example:

$spiderplot->SetLineWeight(2);

 

RadarPlot ::
__construct($data)
Create a new Radar plot

ArgumentDefaultDescription
$data  Data array

Description:
Creates a new radar plot 

Example:

$radar = new RadarPlot($data);