CLASS PolarPlot (Defined in: jpgraph_polar.php : 37)

PolarPlot
PolarPlot() SetColor() SetCSIMTargets() SetFillColor() SetLegend() SetWeight()

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

- mark, Instance of class PlotMark. Make sit possible to add Plot marks in the plot.

See also related classes:
PlotMark

Class Methods

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

Argument | Default | Description
--- | --- | ---
$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();

function SetColor($aColor)
Specify line color for polar plot

Argument | Default | Description
--- | --- | ---
$aColor |  | Line Color

Description
Specify line color for polar plot

Example

$polarplot->SetColor('navy');

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

Argument | Default | Description
--- | --- | ---
$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
Graph::StrokeCSIM

Example

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

function SetFillColor($aColor)
Specify fill color for plot

Argument | Default | Description
--- | --- | ---
$aColor |  | Fill color

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

Example

$polarplot->SetFillColor('orange');

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

Argument | Default | Description
--- | --- | ---
$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');

function SetWeight($aWeight)
Sepcify line weight (in pixels)

Argument | Default | Description
--- | --- | ---
$aWeight |  | Line weight

Description
Sepcify line weight for plot

Example

$polarplot->SetWeight(2);