CategoryImpl contains logic for managing category data. CategoryImpl is used by the following classes:
CategoryImpl_getCoordFromValuemin
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
_getKeyArraykey
data
Gets an array of values based on a key.
Array
_updateMinAndMaxCalculates the maximum and minimum values for the Data.
formatLabelvalue
Formats a label based on the axis type and optionally specified format.
value
Object
String
getDataByKeyvalue
Returns an array of values based on an identifier key.
value
String
value used to identify the array
Array
getKeyValueAtkey
index
Returns a value based of a key value and an index.
String
_dataTypeType of data used in Data.
_indicesObject storing key data.
calculateEdgeOffsetDetermines whether and offset is automatically calculated for the edges of the axis.
calculateEdgeOffsetChange
Fires when the value for the configuration attribute calculateEdgeOffset 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
labelFormatPattern used by the labelFunction to format a label. The default labelFunction values for
CategoryAxis and CategoryAxisBase do not accept a format object. This value can be used by
a custom method.
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
labelFunctionMethod 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 HTMLElement.
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