CLASS PiePlotC EXTENDS PiePlot (Defined in: jpgraph_pie.php : 913)

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

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

function PiePlotC($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 and PiePlotC::SetMidSize

Example

$piec = new PiePlotC($data);

function 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);

function 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');

function SetMidCSIM($aTarget,$aAlt)
Specify URL target for filled middle circle

Argument | Default | Description
--- | --- | ---
$aTarget |  | Target URL string
$aAlt |  | Alt text

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');

function 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);

function 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 and PiePlotC::PiePlotC

Example

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