(Defined in: jpgraph_pie.php : 1015)
Class usage and Overview
The PiePlotC is an extesnion of the normal pie plot where there is a filled circle in the center of the pie. This filled circle can have it's own labels and CSIM.
See also related classes:
PiePlot
Class Methods
Specify all parameters for the center circle
Argument | Default | Description |
$aTitle
| | Title text for center circle |
$aColor
|
'white'
| Fill color for center circle |
$aSize
|
0.5
| Size of center. Specified as fraction of radius |
Description:
Specify all parameters for the center circle
$piec->SetMid('Halteberg','red:0.6',0.3);
Specify fill color for center circle
Argument | Default | Description |
$aColor
| | Color |
Description:
Specify fill color for center circle.
See also:
$piec->SetMidColor('yellow:0.6');
Specify URL target for filled middle circle
Argument | Default | Description |
$aTarget
| | Target URL string |
$aAlt
|
''
| Alt text |
$aWinTarget
|
''
| No description available |
Description:
Specify URL target for filled middle circle. Use SetCSIMtargets() to specify the individual targets for the slices in the pie.
See also:
$pie->SetMidCSIM('depth.php?t=32','Details');
Specify size for center circle
Argument | Default | Description |
$aSize
| | Size in fraction of the radius |
Description:
Specify size for center circle as fraction of the radius.
$piec->SetMidSize(0.5);
Specify title for the center circle.
Argument | Default | Description |
$aTitle
| | Title |
Description:
Specify title for the center circle. The title can also be set in the inital creation of the Pie as well as with the SetMidTitle()
See also:
$piec->SetMidTitle("Center title\nSecond line title");
Create a Pie plot with a filled circle in the middle
Argument | Default | Description |
$data
| | Data array |
$aCenterTitle
|
''
| Title for center circle |
Description:
Create a variant of the Pie plot with a filled circle in the middle. The title, color and size of the center circle ca be modified.
See also:
$piec = new PiePlotC($data);