(Defined in: jpgraph_polar.php : 34)
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
Specify line color for polar plot
Argument | Default | Description |
$aColor
| | Line Color |
Description:
Specify line color for polar plot
$polarplot->SetColor('navy');
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:
// Dummy targets
$t = array('#1','#2','#3','#4','#5','#6');
$polarplot->SetCSIMTargets($t);
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->SetFillColor('orange');
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.
$polarplot->SetLegend('Year 2002');
Sepcify line weight (in pixels)
Argument | Default | Description |
$aWeight
| | Line weight |
Description:
Sepcify line weight for plot
$polarplot->SetWeight(2);
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..
$pdata = array(0,0,15,35,40,70,70,120);
$polarplot = new PolarPlot($pdata);
$polarplot->SetFillColor('lightblue@0.5');
$polargraph->Add($polarplot);
$polargraph->Stroke();