Graph: ezcGraphChartElementLabeledAxis
[ ]
[ ]
[ ]
[ ]
[ ]
Class: ezcGraphChartElementLabeledAxis
|
Class to represent a labeled axis. Values on the x axis are considered as strings and used in the given order. [
source]
Parents
ezcBaseOptions
|
--ezcGraphChartElement
|
--ezcGraphChartElementAxis
|
--ezcGraphChartElementLabeledAxis
Constants
MAX_LABEL_COUNT
= 10
|
Maximum count of labels which can be displayed on one axis |
Properties
|
float |
read/write
|
$labelCount
Define count of displayed labels on the axis |
Member Variables
|
protected array |
$displayedLabels
= array()
Reduced amount of labels which will be displayed in the chart |
|
protected array |
$labels
= array()
Array with labeles for data |
|
protected array(ezcGraphAxisStep) |
$steps
Precalculated steps on the axis |
Inherited Member Variables
From
ezcGraphChartElementAxis:
From
ezcBaseOptions:
Method Summary
|
public void |
addData(
$values )
Add data for this axis |
|
public abstract void |
calculateAxisBoundings(
)
Calculate axis bounding values on base of the assigned values |
|
public float |
getCoordinate(
$value )
Get coordinate for a dedicated value on the chart |
|
public string |
getLabel(
$step )
Get label for a dedicated step on the axis |
|
public integer |
getMajorStepCount(
)
Return count of major steps |
|
public integer |
getMinorStepCount(
)
Return count of minor steps |
|
public array( |
getSteps(
)
Return array of steps on this axis |
|
protected array |
increaseKeys(
$array, $startKey )
Increase the keys of all elements in the array up from the start key, to insert an additional element at the correct position. |
|
public bool |
isZeroStep(
$step )
Is zero step |
Inherited Methods
From
ezcGraphChartElementAxis :
From
ezcGraphChartElement :
From
ezcBaseOptions :
Methods
addData
void addData(
$values )
Add data for this axis
Parameters
| Name |
Type |
Description |
$values |
array |
Value which will be displayed on this axis |
Redefinition of
calculateAxisBoundings
void calculateAxisBoundings(
)
Calculate axis bounding values on base of the assigned values
Redefinition of
getCoordinate
float getCoordinate(
string
$value )
Get coordinate for a dedicated value on the chart
Parameters
| Name |
Type |
Description |
$value |
string |
Value to determine position for |
Redefinition of
getLabel
string getLabel(
integer
$step )
Get label for a dedicated step on the axis
Parameters
| Name |
Type |
Description |
$step |
integer |
Number of step |
Redefinition of
getMajorStepCount
integer getMajorStepCount(
)
Return count of major steps
Redefinition of
getMinorStepCount
integer getMinorStepCount(
)
Return count of minor steps
Redefinition of
getSteps
array( getSteps(
)
Return array of steps on this axis
Redefinition of
increaseKeys
array increaseKeys(
$array, int
$startKey )
Increase the keys of all elements in the array up from the start key, to insert an additional element at the correct position.
Parameters
| Name |
Type |
Description |
$array |
array |
Array |
$startKey |
int |
Key to increase keys from |
isZeroStep
bool isZeroStep(
int
$step )
Is zero step
Returns true if the given step is the one on the initial axis position
Parameters
| Name |
Type |
Description |
$step |
int |
Number of step |
Redefinition of
Last updated: Wed, 28 Nov 2007