Graph: ezcGraphChartElementLogarithmicalAxis
[ ]
[ ]
[ ]
[ ]
[ ]
Class: ezcGraphChartElementLogarithmicalAxis
|
Class to represent a numeric axis. The axis tries to calculate "nice" start and end values for the axis scale. The used interval is considered as nice, if it is equal to [1,2,5] * 10^x with x in [.., -1, 0, 1, ..]. [
source]
The start and end value are the next bigger / smaller multiple of the intervall compared to the maximum / minimum axis value.
Parents
ezcBaseOptions
|
--ezcGraphChartElement
|
--ezcGraphChartElementAxis
|
--ezcGraphChartElementLogarithmicalAxis
Constants
MAX_STEPS
= 9
|
Constant used for calculation of automatic definition of major scaling |
Properties
|
float |
read/write
|
$base
Base for logarithmical scaling. |
|
string |
read/write
|
$logarithmicalFormatString
Sprintf formatstring for the axis labels where $1 is the base and $2 is the exponent. |
|
float |
read/write
|
$max
Maximum value of displayed scale on axis. |
|
float |
read
|
$maxValue
Maximum value to display on this axis. |
|
float |
read/write
|
$min
Minimum value of displayed scale on axis. |
|
float |
read
|
$minValue
Minimum Value to display on this 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 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(
float
$value )
Get coordinate for a dedicated value on the chart
Parameters
| Name |
Type |
Description |
$value |
float |
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
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: Mon, 17 Dec 2007