Class PiePlotC Extends PiePlot
(Defined in: jpgraph_pie.php : 1015)

PiePlotC | PiePlot
SetMid() SetMidColor() SetMidCSIM() SetMidSize() SetMidTitle() __construct() | Explode() ExplodeAll() ExplodeSlice() SetCenter() SetColor() SetCSIMTargets() SetGuideLines() SetGuideLinesAdjust() SetLabelPos() SetLabels() SetLabelType() SetLegends() SetShadow() SetSize() SetSliceColors() SetStartAngle() SetTheme() SetValueType() ShowBorder() __construct()

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

PiePlotC ::
SetMid($aTitle, $aColor, $aSize)
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

Example:

$piec->SetMid('Halteberg','red:0.6',0.3);

PiePlotC ::
SetMidColor($aColor)
Specify fill color for center circle

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

Description:
Specify fill color for center circle.
See also:

- PiePlotC::SetMid()

Example:

$piec->SetMidColor('yellow:0.6');

PiePlotC ::
SetMidCSIM($aTarget, $aAlt, $aWinTarget)
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:

- PiePlot::SetCSIMTargets()

Example:

$pie->SetMidCSIM('depth.php?t=32','Details');

PiePlotC ::
SetMidSize($aSize)
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.

Example:

$piec->SetMidSize(0.5);

PiePlotC ::
SetMidTitle($aTitle)
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:

- PiePlotC::SetMid()
- PiePlotC::__construct()

Example:

$piec->SetMidTitle("Center title\nSecond line title");

PiePlotC ::
__construct($data, $aCenterTitle)
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:

- PiePlotC::SetMidCSIM()
- PiePlotC::SetMid()
- PiePlotC::SetMidColor()
- PiePlotC::SetMidSize()

Example:

$piec = new PiePlotC($data);