CategoryAxis Class
CategoryAxis manages category data on an axis.
Item Index
Methods
Methods
_getKeyArray
-
key
-
data
Gets an array of values based on a key.
Parameters:
-
key
StringValue key associated with the data array.
-
data
ArrayArray in which the data resides.
Returns:
_setDataByKey
-
key
-
data
Sets data by key
Parameters:
-
key
StringKey value to use.
-
data
ArrayArray to use.
_updateMinAndMax
()
private
Calculates the maximum and minimum values for the Axis
.
formatLabel
-
value
-
format
Formats a label based on the axis type and optionally specified format.
Parameters:
-
value
Object -
format
ObjectPattern used to format the value.
Returns:
getDataByKey
-
value
Returns an array of values based on an identifier key.
Parameters:
-
value
Stringvalue used to identify the array
Returns:
getEdgeOffset
-
ct
-
l
Gets the distance that the first and last ticks are offset from there respective edges.
Parameters:
-
ct
NumberNumber of ticks on the axis.
-
l
NumberLength (in pixels) of the axis.
Returns:
getKeyValueAt
-
key
-
index
Returns a value based of a key value and an index.
Parameters:
-
key
Stringvalue used to look up the correct array
-
index
Numberwithin the array
Returns:
getLabelByIndex
-
i
-
l
Calculates and returns a value based on the number of labels and the index of the current label.
Parameters:
-
i
NumberIndex of the label.
-
l
NumberTotal number of labels.
Returns:
getMajorUnitDistance
-
len
-
uiLen
-
majorUnit
Returns the distance between major units on an axis.
Parameters:
-
len
NumberNumber of ticks
-
uiLen
NumberSize of the axis.
-
majorUnit
ObjectHash of properties used to determine the majorUnit
Returns:
getMaximumValue
()
Returns a string corresponding to the last label on an axis.
Returns:
getMinimumValue
()
Returns a string corresponding to the first label on an axis.
Returns:
getTotalMajorUnits
-
majorUnit
-
len
Returns the total number of majorUnits that will appear on an axis.
Parameters:
-
majorUnit
ObjectObject containing properties related to the majorUnit.
-
len
NumberLength of the axis.
Returns:
Properties
_dataType
Unknown
private
Type of data used in Axis
.
_indices
Unknown
private
Object storing key data.
GUID
String
private
Constant used to generate unique id.