Class PolarPlot
(Defined in: jpgraph_polar.php : 34)
 
 PolarPlot 
 SetColor() 
 SetCSIMTargets() 
 SetFillColor() 
 SetLegend() 
 SetWeight() 
 __construct() 
 

Class usage and Overview
Represents a polar plot. A polar plot is a line plot that may have marks or be filled. Public properties are

 

See also related classes:
PlotMark

 


Class Methods

 

PolarPlot ::
SetColor($aColor)
Specify line color for polar plot

ArgumentDefaultDescription
$aColor  Line Color

Description:
Specify line color for polar plot 

Example:

$polarplot->SetColor('navy');

 

PolarPlot ::
SetCSIMTargets($aTargets, $aAlts)
Specify URL targets for markers

ArgumentDefaultDescription
$aTargets  URL targets
$aAlts null Alt texts

Description:
Specify URL targets for markers on the polar plot. If you have specified a mark the polar plot you can add URL targets for each mark with this method. Remember that to create an image map graph you need to construct the graph with the Graph::StrokeCSIM() method instead of the ordinary Graph::Stroke() 
 
See also:

Example:

// Dummy targets
$t = array('#1','#2','#3','#4','#5','#6');

$polarplot->SetCSIMTargets($t);


 

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

ArgumentDefaultDescription
$aColor  Fill color

Description:
Specify fill color for plot. If the fill color is specified as '' then no fill will be used. 
 
See also:

Example:

$polarplot->SetFillColor('orange');

 

PolarPlot ::
SetLegend($aLegend, $aCSIM, $aCSIMAlt)
Specify legend text for the plot

ArgumentDefaultDescription
$aLegend  Legend text
$aCSIM "" URL target for this legend
$aCSIMAlt "" ALT text for this legend

Description:
Specify legend text for the plot. When image maps are used you can also specify a URL for this legend. 

Example:

$polarplot->SetLegend('Year 2002');

 

PolarPlot ::
SetWeight($aWeight)
Sepcify line weight (in pixels)

ArgumentDefaultDescription
$aWeight  Line weight

Description:
Sepcify line weight for plot 

Example:

$polarplot->SetWeight(2);

 

PolarPlot ::
__construct($aData)
Constructor. Create a new Polar plot

ArgumentDefaultDescription
$aData  Data array

Description:
A polar plot is created form an array of (angle,radius) specification for each plot point.. 

Example:

$pdata = array(0,0,15,35,40,70,70,120);

$polarplot = new PolarPlot($pdata);
$polarplot->SetFillColor('lightblue@0.5');

$polargraph->Add($polarplot);

$polargraph->Stroke();