Graph: ezcGraphChart
[ ]
[ Gallery ]
[ ]
[ ]
[ ]
[ ]
Class: ezcGraphChart
|
Class to represent a complete chart. [
source]
Descendents
| Child Class |
Description |
| ezcGraphOdometerChart |
Class for odometer charts. Can only use one dataset which will be dispalyed as a odometer chart.
|
| ezcGraphPieChart |
Class for pie charts. Can only use one dataset which will be dispalyed as a pie chart.
|
| ezcGraphRadarChart |
Class for radar charts.
|
| ezcGraphLineChart |
Class for line charts. Can make use of an unlimited amount of datasets and will display them as lines by default.
|
Properties
Member Variables
|
protected ezcGraphChartDataContainer |
$data
Contains the data of the chart |
|
protected array(ezcGraphChartElement) |
$elements
= array()
Contains subelelemnts of the chart like legend and axes |
|
protected ezcGraphChartConfig |
$options
Contains all general chart options |
|
protected array |
$properties
Array containing chart properties |
|
protected array |
$renderElement
Contains the status wheather an element should be rendered |
Method Summary
|
protected void |
addElement(
$name, $element )
Add element to chart |
|
public abstract int |
getDefaultDisplayType(
)
Returns the default display type of the current chart type. |
|
public mixed |
getRenderedFile(
)
Return filename of rendered file, and false if no file was yet rendered. |
|
public abstract void |
render(
$width, $height, [$file = null] )
Renders this chart |
|
public abstract void |
renderToOutput(
$width, $height )
Renders this chart to direct output |
|
public void |
setFromPalette(
$palette )
Set colors and border fro this element |
Methods
addElement
Add element to chart
Add a chart element to the chart and perform the required configuration tasks for the chart element.
Parameters
getDefaultDisplayType
int getDefaultDisplayType(
)
Returns the default display type of the current chart type.
Redefined in descendants as
getRenderedFile
mixed getRenderedFile(
)
Return filename of rendered file, and false if no file was yet rendered.
render
void render(
int
$width, int
$height, [string
$file = null] )
Renders this chart
Creates basic visual chart elements from the chart to be processed by the renderer.
Parameters
| Name |
Type |
Description |
$width |
int |
|
$height |
int |
|
$file |
string |
|
Redefined in descendants as
renderToOutput
void renderToOutput(
int
$width, int
$height )
Renders this chart to direct output
Does the same as ezcGraphChart::render(), but renders directly to output and not into a file.
Parameters
| Name |
Type |
Description |
$width |
int |
|
$height |
int |
|
Redefined in descendants as
setFromPalette
Set colors and border fro this element
Parameters
Redefined in descendants as
Last updated: Mon, 11 May 2009