SetPieStartAngle

SetPieStartAngle — Set the starting angle for pie chart segments

Synopsis

$plot->SetPieStartAngle($angle)

Description

SetPieStartAngle sets the starting angle for the first segment in a pie chart.

Parameters

$angle

Starting angle in degrees

Notes

The default starting angle is 0 degrees. This results in the first pie segment starting on the right-pointing horizontal radius ("East"), and extending upwards in a counter-clockwise direction (by default).

See also SetPieDirection which is used to set the direction for pie chart segments - clockwise or counter-clockwise.

Example

See Section 5.47, “Example - Pie Chart Start Angle and Direction”.

History

This function was added in PHPlot-6.0.0. Before that, the first segment of a pie chart always started at 0 degrees.

SourceForge.net Logo

This version of the manual was produced for the PHPlot Sourceforge project web service site, which requires the logo on each page.

To download a logo-free copy of the manual, see the PHPlot project downloads area.