TimeImpl contains logic for time data. TimeImpl is used by the following classes:
TimeImpl
_getCoordFromValue
min
max
length
dataValue
offset
reverse
Returns a coordinate corresponding to a data values.
min
Number
The minimum for the axis.
max
Number
The maximum for the axis.
length
Number
The distance that the axis spans.
dataValue
Number
A value used to ascertain the coordinate.
offset
Number
Value in which to offset the coordinates.
reverse
Boolean
Indicates whether the coordinates should start from the end of an axis. Only used in the numeric implementation.
Number
_getKeyArray
key
data
Gets an array of values based on a key.
Array
_getNumber
val
Parses value into a number.
val
Object
Value to parse into a number
Number
_getSetMax
Indicates whether or not the maximum attribute has been explicitly set.
Boolean
_getSetMin
Indicates whether or not the minimum attribute has been explicitly set.
Boolean
_maximumGetter
Getter method for maximum attribute.
Number
_minimumGetter
Getter method for minimum attribute.
Number
_updateMinAndMax
Calculates the maximum and minimum values for the Axis
.
_dataType
Type of data used in Axis
.
_type
Type of data used in Data
.
labelFormat
Pattern used by the labelFunction
to format a label.
labelFormatChange
Fires when the value for the configuration attribute labelFormat
is
changed. You can listen for the event using the on
method if you
wish to be notified before the attribute's value has changed, or
using the after
method if you wish to be notified after the
attribute's value has changed.
e
EventFacade
labelFunction
Method used for formatting a label. This attribute allows for the default label formatting method to overridden.
The method use would need to implement the arguments below and return a String
or an HTMLElement
. The default
implementation of the method returns a String
. The output of this method will be rendered to the DOM using
appendChild
. If you override the labelFunction
method and return an html string, you will also need to override
the Axis' appendLabelFunction
to accept html as a String
.
String
)labelFunctionChange
Fires when the value for the configuration attribute labelFunction
is
changed. You can listen for the event using the on
method if you
wish to be notified before the attribute's value has changed, or
using the after
method if you wish to be notified after the
attribute's value has changed.
e
EventFacade