Class PieChart
Abstract class that is designed to be extended for drawing pie charts with different graphics libraries. Use PieChartGD or PieChartImagick to actually draw your charts.
Abstract
Namespace: SamChristy\PieChart
Package: PieChart
Copyright: © Sam Christy 2013
Author: Sam Christy <sam_christy@hotmail.co.uk>
Version: v2.0.0
Licence: GNU GPL v3.0 <http://www.gnu.org/licenses/gpl-3.0.html>
Located at SamChristy/PieChart/PieChart.php
Namespace: SamChristy\PieChart
Package: PieChart
Copyright: © Sam Christy 2013
Author: Sam Christy <sam_christy@hotmail.co.uk>
Version: v2.0.0
Licence: GNU GPL v3.0 <http://www.gnu.org/licenses/gpl-3.0.html>
Located at SamChristy/PieChart/PieChart.php
public
|
#
__construct( integer $width = 0, integer $height = 0, string $title = '', string|integer|array $textColor = 0x222222, string|integer|array $backgroundColor = 0xffffff )
Constructs the PieChart. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
protected
|
|
public
boolean
|
|
public
boolean
|
#
outputJPEG( string $filename = 'pie-chart.jpg' )
Echos the chart as a JPEG and instructs the browser to display it inline. |
public
boolean
|
|
public
boolean
|
#
forceDownloadGIF( string $filename = 'pie-chart.gif' )
Echos the chart as a GIF and instructs the browser to force the user to save it. |
public
boolean
|
#
forceDownloadJPEG( string $filename = 'pie-chart.jpg' )
Echos the chart as a JPEG and instructs the browser to force the user to save it. |
public
boolean
|
#
forceDownloadPNG( string $filename = 'pie-chart.png' )
Echos the chart as a PNG and instructs the browser to force the user to save it. |
public
integer
|
|
public
integer
|
|
public
integer
|
integer |
FORMAT_GIF
|
1 |
|
integer |
FORMAT_JPEG
|
2 |
|
integer |
FORMAT_PNG
|
3 |
|
integer |
OUTPUT_DOWNLOAD
|
1 |
|
integer |
OUTPUT_INLINE
|
2 |
|
integer |
OUTPUT_SAVE
|
3 |
protected
mixed
|
$slices |
|
|
protected
mixed
|
$width |
|
|
protected
mixed
|
$height |
|
|
protected
mixed
|
$title |
|
|
protected
mixed
|
$hasLegend |
|
|
protected
mixed
|
$titleFont |
|
|
protected
mixed
|
$legendFont |
|
|
protected
mixed
|
$textColor |
|
|
protected
mixed
|
$backgroundColor |
|
|
protected
mixed
|
$canvas |
|
|
protected
mixed
|
$quality |
|