Property | Type | Description | |
---|---|---|---|
$adapter | mixed | Graph graphic adapter interface | |
$axisColor | mixed | Axis color | |
$axisWidth | integer | Axis width | |
$barWidth | integer | Bar width | |
$fillColor | mixed | Fill color | |
$font | string | Current font to use | |
$fontColor | mixed | Font color | |
$fontSize | integer | Font size | |
$fonts | array | Available fonts | |
$height | integer | Graph canvas height | |
$padding | integer | Graph canvas padding | |
$reverseFontColor | mixed | Reverse font color | |
$showText | boolean | Show data text flag | |
$showX | boolean | Show X-axis increment lines flag | |
$showXColor | mixed | Show X-axis color | |
$showY | boolean | Show Y-axis increment lines flag | |
$showYColor | mixed | Show X-axis color | |
$strokeColor | mixed | Stroke color | |
$strokeWidth | integer | Stroke width | |
$width | integer | Graph canvas width |
Method | Description | |
---|---|---|
__construct ( array $options, boolean $forceGd = false ) : |
Constructor | |
adapter ( ) : mixed | Get the graph graphic adapter | |
addFont ( string $font ) : |
Add a font to available fonts | |
createHBarGraph ( array $dataPoints, array $xAxis, array $yAxis ) : |
Create a horizontal bar graph | |
createLineGraph ( array $dataPoints, array $xAxis, array $yAxis ) : |
Create a line graph | |
createPieChart ( array $pie, array $percents, integer $explode ) : |
Create a horizontal bar graph | |
createVBarGraph ( array $dataPoints, array $xAxis, array $yAxis ) : |
Create a vertical bar graph | |
getAxisColor ( ) : Pop\Color\Space\ColorInterface | Get the axis color | |
getAxisWidth ( ) : integer | Get the axis width | |
getBarWidth ( ) : integer | Get the bar width | |
getFillColor ( ) : mixed | Get the fill color | |
getFont ( ) : string | Get the font | |
getFontColor ( ) : mixed | Get the font color | |
getFontSize ( ) : integer | Get the font size | |
getFonts ( string $font = null ) : string | Get the fonts | |
getHeight ( ) : integer | Get the height | |
getPadding ( ) : integer | Get the graph canvas padding | |
getReverseFontColor ( ) : mixed | Get the reverse font color | |
getShowText ( ) : boolean | Get the 'show data text' flag | |
getShowX ( ) : boolean | Get the show X flag | |
getShowY ( ) : boolean | Get the show Y flag | |
getStrokeColor ( ) : mixed | Get the stroke color | |
getStrokeWidth ( ) : integer | Get the stroke width | |
getWidth ( ) : integer | Get the width | |
getXColor ( ) : Pop\Color\Space\ColorInterface | Get the show X color | |
getYColor ( ) : Pop\Color\Space\ColorInterface | Get the show Y color | |
output ( boolean $download = false ) : void | Output the graph | |
save ( string $to = null, boolean $append = false ) : |
Save the graph image to disk | |
setAxisOptions ( Pop\Color\Space\ColorInterface $color = null, integer $width = 2 ) : |
Set the axis options | |
setBarWidth ( integer $width ) : |
Set the bar width | |
setFillColor ( Pop\Color\Space\ColorInterface $color ) : |
Set the fill color | |
setFont ( string $font = null ) : |
Set the font to use from the available fonts | |
setFontColor ( Pop\Color\Space\ColorInterface $color ) : |
Set the font color | |
setFontSize ( integer $size ) : |
Set the font size | |
setPadding ( integer $pad ) : |
Set the graph canvas padding | |
setReverseFontColor ( Pop\Color\Space\ColorInterface $color ) : |
Set the reverse font color | |
setStrokeColor ( Pop\Color\Space\ColorInterface $color ) : |
Set the stroke color | |
setStrokeWidth ( integer $width = 1 ) : |
Set the stroke width | |
showText ( boolean $showText ) : |
Set the 'show data text' flag | |
showX ( boolean $showX, Pop\Color\Space\ColorInterface $color = null ) : |
Set the 'show X-axis increment lines' flag | |
showY ( boolean $showY, Pop\Color\Space\ColorInterface $color = null ) : |
Set the 'show Y-axis increment lines' flag |
public __construct ( array $options, boolean $forceGd = false ) : |
||
$options | array | |
$forceGd | boolean | |
return |
public getAxisColor ( ) : Pop\Color\Space\ColorInterface | ||
return | Pop\Color\Space\ColorInterface |
public getPadding ( ) : integer | ||
return | integer |
public getReverseFontColor ( ) : mixed | ||
return | mixed |
public getShowText ( ) : boolean | ||
return | boolean |
public getStrokeWidth ( ) : integer | ||
return | integer |
public getXColor ( ) : Pop\Color\Space\ColorInterface | ||
return | Pop\Color\Space\ColorInterface |
public getYColor ( ) : Pop\Color\Space\ColorInterface | ||
return | Pop\Color\Space\ColorInterface |
public setAxisOptions ( Pop\Color\Space\ColorInterface $color = null, integer $width = 2 ) : |
||
$color | Pop\Color\Space\ColorInterface | |
$width | integer | |
return |
public setBarWidth ( integer $width ) : |
||
$width | integer | |
return |
public setFillColor ( Pop\Color\Space\ColorInterface $color ) : |
||
$color | Pop\Color\Space\ColorInterface | |
return |
public setFontColor ( Pop\Color\Space\ColorInterface $color ) : |
||
$color | Pop\Color\Space\ColorInterface | |
return |
public setFontSize ( integer $size ) : |
||
$size | integer | |
return |
public setPadding ( integer $pad ) : |
||
$pad | integer | |
return |
public setReverseFontColor ( Pop\Color\Space\ColorInterface $color ) : |
||
$color | Pop\Color\Space\ColorInterface | |
return |
public setStrokeColor ( Pop\Color\Space\ColorInterface $color ) : |
||
$color | Pop\Color\Space\ColorInterface | |
return |
public setStrokeWidth ( integer $width = 1 ) : |
||
$width | integer | |
return |
protected mixed $adapter | ||
return | mixed |
protected mixed $reverseFontColor | ||
return | mixed |