AxisType is an abstract class that manages the data for an axis.
_dataProviderChangeHandler
e
Handles changes to dataProvider
.
e
Object
Event object.
_getKeyArray
key
data
Gets an array of values based on a key.
_hasDataOverflow
Checks to see if data extends beyond the range of the axis. If so, that data will need to be hidden. This method is internal, temporary and subject to removal in the future.
_keyChangeHandler
e
Updates the Axis
after a change in keys.
e
Object
Event object.
_setDataByKey
key
data
Sets data by key
_updateMinAndMax
Calculates the maximum and minimum values for the Axis
.
_updateTotalData
Updates the total data array.
addKey
value
Adds an array to the key hash.
value
Object
Indicates what key to use in retrieving the array.
bindUI
getDataByKey
value
Returns an array of values based on an identifier key.
value
String
value used to identify the array
getEdgeOffset
ct
l
Gets the distance that the first and last ticks are offset from there respective edges.
getKeyValueAt
key
index
Returns a value based of a key value and an index.
getLabelByIndex
i
l
Calculates and returns a value based on the number of labels and the index of the current label.
getMajorUnitDistance
len
uiLen
majorUnit
Returns the distance between major units on an axis.
getMaximumValue
Returns a string corresponding to the last label on an axis.
getMinimumValue
Returns a string corresponding to the first label on an axis.
getTotalMajorUnits
Returns the total number of majorUnits that will appear on an axis.
initializer
removeKey
value
Removes an array from the key hash.
value
String
Indicates what key to use in removing from the hash.
data
Array of axis data
dataChange
Fires when the value for the configuration attribute data
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
dataMaximum
The maximum value contained in the data
array. Used for
maximum
when autoMax
is true.
dataMaximumChange
Fires when the value for the configuration attribute dataMaximum
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
dataMinimum
The minimum value contained in the data
array. Used for
minimum
when autoMin
is true.
dataMinimumChange
Fires when the value for the configuration attribute dataMinimum
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
dataProvider
Instance of ChartDataProvider
that the class uses
to build its own data.
dataProviderChange
Fires when the value for the configuration attribute dataProvider
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
keyCollection
Array containing all the keys in the axis.
keyCollectionChange
Fires when the value for the configuration attribute keyCollection
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
keys
Hash of array identifed by a string value.
keysChange
Fires when the value for the configuration attribute keys
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
maximum
The maximum value that will appear on an axis.
maximumChange
Fires when the value for the configuration attribute maximum
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
minimum
The minimum value that will appear on an axis.
minimumChange
Fires when the value for the configuration attribute minimum
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
roundingMethod
Indicates how to round unit values.
Default: niceNumber
roundingMethodChange
Fires when the value for the configuration attribute roundingMethod
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
setMax
Determines whether the maximum is calculated or explicitly set by the user.
setMaxChange
Fires when the value for the configuration attribute setMax
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
setMin
Determines whether the minimum is calculated or explicitly set by the user.
setMinChange
Fires when the value for the configuration attribute setMin
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
type
Returns the type of axis data
typeChange
Fires when the value for the configuration attribute type
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