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:
-
keyStringValue key associated with the data array.
-
dataArrayArray in which the data resides.
Returns:
_setDataByKey
-
key -
data
Sets data by key
Parameters:
-
keyStringKey value to use.
-
dataArrayArray 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:
-
valueObject -
formatObjectPattern used to format the value.
Returns:
getDataByKey
-
value
Returns an array of values based on an identifier key.
Parameters:
-
valueStringvalue 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:
-
ctNumberNumber of ticks on the axis.
-
lNumberLength (in pixels) of the axis.
Returns:
getKeyValueAt
-
key -
index
Returns a value based of a key value and an index.
Parameters:
-
keyStringvalue used to look up the correct array
-
indexNumberwithin 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:
-
iNumberIndex of the label.
-
lNumberTotal number of labels.
Returns:
getMajorUnitDistance
-
len -
uiLen -
majorUnit
Returns the distance between major units on an axis.
Parameters:
-
lenNumberNumber of ticks
-
uiLenNumberSize of the axis.
-
majorUnitObjectHash 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:
-
majorUnitObjectObject containing properties related to the majorUnit.
-
lenNumberLength 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.
