| Package | xp.charting |
| Class | public class Axis |
| Inheritance | Axis ChartStyleClient ChartDisplayElement ProgrammaticSkin mx.core.FlexSprite |
| Implements | IAxis |
| Subclasses | CategoryAxis, DateTimeAxis, LinearAxis |
Axis objects inherit some of their visual properties
from the enclosing chart object.
The text format of the labels and title defaults
to the CSS text properties of the axis.
You can control the formatting of the axis title separately
by specifying a axisTitleStyleName,
either on the Axis or on the enclosing chart.
When positioning and sizing labels, the Axis takes a minimum amount of the chart's available space. If labels take too much space, then the Axis hides, staggers, roatates or scales them. However, the Axis does not scale the labels to too small of a point size. To increase readability, the Axis chooses one of the following layout methods based on the one that requires the least scaling:
The Axis adjusts the boundaries of the chart's data area to ensure that it can draw the labels without pushing outside of the boundaries.
MXML Syntax
Hide MXML Syntax
The <xpc:Axis> tag inherits all the properties
of its parent classes, and adds the following properties:
<xpc:Axis
Properties
length="Number"
placement="right|left|bottom|top"
Styles
axisStroke="No default"
canHideLabels="true|false"
canStagger="true|false"
canScale="true|false"
canRotate="true|false"
labelGap="3"
labelRotation="No default"
minorTickLength="Default depends on axis"
minorTickPlacement="none|inside|outside|cross"
minorTickStroke="No default"
showLabels="true|false"
showLine="true|false"
tickLength="Default depends on axis"
tickPlacement="inside|outside|cross|none"
tickStroke="No default"
/>
Default MXML Propertymarkers
| Property | Defined by | ||
|---|---|---|---|
| axisLabelFormat : String
The format sting to format values into axis labels
| Axis | ||
| axisLabelFunction : Function
The user custom function to format values into axis labels
| Axis | ||
| axisMode : int | Axis | ||
| axisOffset : int = 0 | Axis | ||
| baseAtZero : Boolean
Used to set the minimum value of a numerical axis to zero even if the data minimum value does not start at zero.
| Axis | ||
| categoryField : String
The catgeory field
| Axis | ||
![]() | chart : IChartArea | ChartDisplayElement | |
![]() | chartDesc : ChartDesc | ChartDisplayElement | |
![]() | chartParent : IChart | ChartDisplayElement | |
![]() | className : String | ChartStyleClient | |
| data : Array
The array of data for this axis
| Axis | ||
| dataLabelFormat : String
The format sting to format values into point labels
| Axis | ||
| dataLabelFunction : Function
The user custom function to format values into point labels
| Axis | ||
| dataProvider : Object
The source of the chart items.
| Axis | ||
| dataType : String = "String"
The type of data this axis represents
Used to help in formatting the values for display
| Axis | ||
| displayName : String
The name or title to display in dataTips/dataLabels
| Axis | ||
![]() | height : Number | ProgrammaticSkin | |
| index : int
Axis index
| Axis | ||
![]() | inheritingStyles : Object | ChartStyleClient | |
![]() | initialized : Boolean | ProgrammaticSkin | |
| interval : Number
Specifies the interval of major tick marks, labels and gridlines on the selected axis
| Axis | ||
| intervalCount : Number
num of labels displayed
| Axis | ||
| isHorizontal : Boolean [read-only]
Is the axis displayed horizontally
If false the axis is being displayed vertically
| Axis | ||
![]() | isSubChart : Boolean | ChartDisplayElement | |
| length : Number [read-only]
The length of the axis in pixels
| Axis | ||
| markers : Array | Axis | ||
| maxDataValue : Number [read-only]
The max value of the data
| Axis | ||
| maxValue : Number
The max value of the axis
| Axis | ||
![]() | measuredHeight : Number
The measured height of this object.
| ChartDisplayElement | |
![]() | measuredWidth : Number
The measured width of this object.
| ChartDisplayElement | |
| minDataValue : Number [read-only]
The min value of the data
| Axis | ||
| minorIntervalCount : int = 1
Specifies the number of minor tick marks and minor gridlines (if they are displayed) on the selected axis between major ticks
| Axis | ||
| minValue : Number
The max value of the axis
| Axis | ||
![]() | nestLevel : int | ProgrammaticSkin | |
![]() | nonInheritingStyles : Object | ChartStyleClient | |
![]() | parent : DisplayObjectContainer | ChartDisplayElement | |
| parseFormat : String
The format sting to parse data into values
| Axis | ||
| parseFunction : Function
The user custom function to parse data into values
| Axis | ||
| placement : String
lacement of axis left/right/top/bottom
| Axis | ||
| prefix : String = ""
last label prefix
| Axis | ||
![]() | processedDescriptors : Boolean | ProgrammaticSkin | |
| range : Number [read-only]
The axis range
| Axis | ||
![]() | styleDeclaration : CSSStyleDeclaration | ChartStyleClient | |
![]() | styleName : Object | ChartStyleClient | |
| suffix : String = ""
last label suffix
| Axis | ||
| ticks : Array
array of axis tick descriptors
| Axis | ||
| title : String
The name or title to display along the axis
| Axis | ||
| type : String
The axis type "x" or "y"
| Axis | ||
![]() | updateCompletePendingFlag : Boolean | ProgrammaticSkin | |
![]() | width : Number | ProgrammaticSkin | |
| Property | Defined by | ||
|---|---|---|---|
| axisBackground : Shape | Axis | ||
| axisChanged : Boolean = false | Axis | ||
| _axisDataProvider : ICollectionView | Axis | ||
| axisLabelFormatter : IDataFormatter | Axis | ||
| axisLabels : Sprite | Axis | ||
| _axisMode : int = 1
are labels displayed on the boundaries (NO_PAD_AXIS - 1) or within the boundaries (PAD_AXIS - 0)
| Axis | ||
| axisStyleChanged : Boolean = true | Axis | ||
| axisStyles : Object | Axis | ||
| axisValueType : String = "catgeory"
The type of axis values catgeory or value
| Axis | ||
| _baseAtZero : Boolean = true | Axis | ||
| _canHideLabels : Boolean | Axis | ||
| _canRotateLabels : Boolean | Axis | ||
| _canScaleLabels : Boolean | Axis | ||
| _canStaggerLabels : Boolean | Axis | ||
| _categoryField : String | Axis | ||
| changedStyles : Object | Axis | ||
| _chartDataProvider : ICollectionView | Axis | ||
![]() | childList : Array | ChartStyleClient | |
| _data : Array | Axis | ||
| _dataLabelFormat : String | Axis | ||
| dataLabelFormatter : IDataFormatter | Axis | ||
| _dataLabelFunction : Function | Axis | ||
| _dataProvider : ICollectionView | Axis | ||
| dataProviderChanged : Boolean = false | Axis | ||
![]() | _deferLayout : Boolean = false | ProgrammaticSkin | |
| _explicitInterval : Number = NaN | Axis | ||
| _explicitIntervalCount : Number | Axis | ||
| _explicitMaxValue : Number = NaN | Axis | ||
| _explicitMinValue : Number = NaN | Axis | ||
| gridBackground : Shape | Axis | ||
| gridForeground : Shape | Axis | ||
| _interval : Number = 0 | Axis | ||
| _intervalCount : Number = 0 | Axis | ||
![]() | invalidateDisplayListFlag : Boolean = false | ProgrammaticSkin | |
![]() | invalidatePropertiesFlag : Boolean = false | ProgrammaticSkin | |
![]() | invalidateSizeFlag : Boolean = false | ProgrammaticSkin | |
| _labelFormat : String | Axis | ||
| _labelFunction : Function | Axis | ||
| _labelGap : int | Axis | ||
| labelHSpace : int = 0
The amount of horizontal space to reserve for each label
| Axis | ||
| _labelRotation : int | Axis | ||
| _labelScale : Number = 1
The scale of a label
| Axis | ||
| labelsChanged : Boolean = false | Axis | ||
| labelStyleChanged : Boolean = true | Axis | ||
| labelStyles : Object | Axis | ||
| labelVSpace : int = 0
The amount of vertical space to reserve for each label
| Axis | ||
| _markers : Array | Axis | ||
| _maxDataValue : Number = NaN | Axis | ||
| _maxValue : Number = -Infinity | Axis | ||
| _minDataValue : Number = NaN | Axis | ||
| _minValue : Number = Infinity | Axis | ||
| nullStroke : IStroke [static]
| Axis | ||
![]() | owner : Object | ChartStyleClient | |
![]() | _parent : DisplayObjectContainer | ChartDisplayElement | |
| _parseFormat : String | Axis | ||
| parseFormatter : IDataFormatter | Axis | ||
| _parseFunction : Function | Axis | ||
| series : Array
The series object who have registered with this axis
| Axis | ||
| _showLabels : Boolean | Axis | ||
![]() | sizeChanged : Boolean = false | ProgrammaticSkin | |
![]() | styleParent : IStyleClient | ChartStyleClient | |
![]() | stylesInitialized : Boolean = false | ChartStyleClient | |
![]() | textFieldList : Array | ChartStyleClient | |
| Method | Defined by | ||
|---|---|---|---|
|
Axis()
Constructor create a new Axis instance
| Axis | ||
|
addSeries(series:IAxisSeries):void
Adds a series to this axis
Called by a a series to register itself with the axis
| Axis | ||
![]() |
clearStyle(styleProp:String):void
| ChartStyleClient | |
|
decodeField(items:Array, inputField:String, outputField:String):void
Decode the value of a field in an array of items
| Axis | ||
|
decodeValue(value:*):Number
Decode a single value into a number
| Axis | ||
![]() |
determineTextFormatFromStyles():UITextFormat
| ChartStyleClient | |
|
formatAxisLabel(value:*):String
| Axis | ||
|
formatAxisValue(value:*):String
Format a value for display on the axis
| Axis | ||
|
formatDataLabel(value:*):String
| Axis | ||
|
formatDataValue(value:*):String
Format a value for display in a DataTip
| Axis | ||
![]() |
getClassStyleDeclarations():Array
| ChartStyleClient | |
| Axis | |||
|
getOrigin():Number
| Axis | ||
|
getScreenPosition(value:Number):Number
Returns the screen position of a given data value or index
| Axis | ||
![]() |
getStyle(styleProp:String):*
| ChartStyleClient | |
![]() |
initElement(chart:IChartArea):void
| ChartDisplayElement | |
|
invalidateAxis():void
| Axis | ||
![]() |
invalidateDisplayList():void
| ProgrammaticSkin | |
![]() |
invalidateProperties():void
| ProgrammaticSkin | |
![]() |
invalidateSize():void
| ProgrammaticSkin | |
![]() |
move(x:Number, y:Number):void
Moves this object to the specified x and y coordinates.
| ProgrammaticSkin | |
![]() |
notifyStyleChangeInChildren(styleProp:String, recursive:Boolean):void
| ChartStyleClient | |
![]() |
parentChanged(p:DisplayObjectContainer):void
| ChartStyleClient | |
![]() |
regenerateStyleCache(recursive:Boolean):void
| ChartStyleClient | |
![]() |
registerEffects(effects:Array):void
| ChartStyleClient | |
|
resetRange():void
Prepares the selected axis for new data by resetting scale values
| Axis | ||
|
seriesDataChangedHandler(e:Event):void
Called by a Series to notify its underlying data has changed
| Axis | ||
![]() |
setActualSize(newWidth:Number, newHeight:Number):void
Sets the height and width of this object.
| ProgrammaticSkin | |
![]() |
setStyle(styleProp:String, newValue:*):void
| ChartStyleClient | |
|
styleChanged(styleProp:String):void
| Axis | ||
|
toScreen(items:Array, inputField:String, outputField:String, dimensionSize:int):void
Converts data value to screen coordinates
| Axis | ||
|
updateAxisData(cursor:IViewCursor):void
Load the data from the cursor
| Axis | ||
![]() |
validateDisplayList():void
| ChartDisplayElement | |
![]() |
validateNow():void
Validate and update the properties and layout of this object
and redraw it, if necessary.
| ProgrammaticSkin | |
![]() |
validateProperties():void
| ProgrammaticSkin | |
![]() |
validateSize(recursive:Boolean = false):void
| ChartDisplayElement | |
| Method | Defined by | ||
|---|---|---|---|
![]() |
activate():void
| ChartDisplayElement | |
![]() |
addedHandler(e:Event):void
| ChartDisplayElement | |
|
adjustScale():void
| Axis | ||
|
calcInterval():void
| Axis | ||
|
calcRange():Boolean
Calculates the max,min,interval and interval count as required.
| Axis | ||
|
commitProperties():void
| Axis | ||
![]() |
createChildren():void
| ChartDisplayElement | |
![]() |
deactivate():void
| ChartDisplayElement | |
![]() |
deferLayout(state:Boolean):void
| ProgrammaticSkin | |
|
drawAxis(unscaledWidth:Number, unscaledHeight:Number):void
Draw the axis
| Axis | ||
| Axis | |||
|
getDataMax():Number
| Axis | ||
|
getDataMin():Number
| Axis | ||
|
getDataType(value:*):String
Returns the type of data represented by value
| Axis | ||
|
getFormatter(type:String):IDataFormatter
| Axis | ||
|
getIntervals():Array
Return and array of interval or tick points
| Axis | ||
![]() |
getParent():DisplayObjectContainer
| ChartDisplayElement | |
| Axis | |||
|
getSeriesMax():Number
| Axis | ||
|
getSeriesMin():Number
| Axis | ||
|
getStyleProperties():void
| Axis | ||
![]() |
initHierarchy():void
| ChartDisplayElement | |
|
initialize():void
| Axis | ||
![]() |
initializeStyles():void
| ChartStyleClient | |
![]() |
initTextFields():void
| ChartStyleClient | |
|
invalidateFormatters():void
| Axis | ||
|
invalidateLabels():void
| Axis | ||
|
invalidateRange():void
| Axis | ||
![]() |
measure():void
| ProgrammaticSkin | |
![]() |
nestLevelChanged():void
| ProgrammaticSkin | |
![]() |
notifyTextFieldStyleChange(styleProp:String):void
| ChartStyleClient | |
![]() |
plotSizeChangedHandler(e:Event):void
| ChartDisplayElement | |
![]() |
removedHandler(e:Event):void
| ChartDisplayElement | |
|
setAxisLabels(data:Array):void
Set the label string into the array of AxisItems
| Axis | ||
|
setAxisTicks(data:Array, majorInterval:int, stagger:int):void
Set the isTick and disposition properties into the array of AxisItems
| Axis | ||
|
setChartDataProvider(value:Object):void
| Axis | ||
|
setDataProvider(value:ICollectionView):void
| Axis | ||
|
setIntervals(length:Number):void
Create the axis labels
| Axis | ||
|
setIntervalSpacing(data:Array):void
Sets the position value into the array of AxisItems
| Axis | ||
|
setLabelFormats():void
Sets the label format strings
Called before the AxisItems are generated to allow subclasses to adjust the format strings before they are used
| Axis | ||
|
setLabelSpace():void
| Axis | ||
|
updateAxisConfig():void
| Axis | ||
|
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
Draw the axis
| Axis | ||
|
updateStyleProperties():void
| Axis | ||
|
validateRange():Boolean
Ensures the axis min/max and interval are correct
This is called during the commit stage
It presumes that any dependent properties have been updated by this stage
| Axis | ||
| Constant | Defined by | ||
|---|---|---|---|
| AXIS_PLACEMENT_BOTTOM : String = "bottom" [static]
The constant for the type of tick - inside the axis
| Axis | ||
| AXIS_PLACEMENT_LEFT : String = "left" [static]
The constant for the type of tick - cross the axis
| Axis | ||
| AXIS_PLACEMENT_RIGHT : String = "right" [static]
The constant for the type of tick - no tick mark
| Axis | ||
| AXIS_PLACEMENT_TOP : String = "top" [static]
The constant for the type of tick - outside the axis
| Axis | ||
| AXIS_VALUE_TYPE_CATEGORY : String = "catgeory" [static]
Constant for the axisValueType property for an axis which represents values as categories
| Axis | ||
| AXIS_VALUE_TYPE_VALUE : String = "value" [static]
Constant for the axisValueType property for an axis which represents values as values
| Axis | ||
| AXISX : String = "x" [static]
Constant for the axis type property for a x axis
| Axis | ||
| AXISY : String = "y" [static]
Constant for the axis type property for a y axis
| Axis | ||
| NO_PAD_AXIS : int = 1 [static]
Constant for the axis mode property
Usually catgeories and values start at the beginning of the axis and end at the end of the axis.
| Axis | ||
| PAD_AXIS : int = 0 [static]
Constant for the axis mode property.
| Axis | ||
| TICK_PLACEMENT_CROSS : String = "cross" [static]
The constant for the type of tick - cross the axis
| Axis | ||
| TICK_PLACEMENT_INSIDE : String = "inside" [static]
The constant for the type of tick - inside the axis
| Axis | ||
| TICK_PLACEMENT_NONE : String = "none" [static]
The constant for the type of tick - no tick mark
| Axis | ||
| TICK_PLACEMENT_OUTSIDE : String = "outside" [static]
The constant for the type of tick - outside the axis
| Axis | ||
| axisBackground | property |
protected var axisBackground:Shape
| axisChanged | property |
protected var axisChanged:Boolean = false
| _axisDataProvider | property |
protected var _axisDataProvider:ICollectionView
| axisLabelFormat | property |
axisLabelFormat:String [read-write]The format sting to format values into axis labels
Implementation public function get axisLabelFormat():String
public function set axisLabelFormat(value:String):void
| axisLabelFormatter | property |
protected var axisLabelFormatter:IDataFormatter
| axisLabelFunction | property |
axisLabelFunction:Function [read-write]The user custom function to format values into axis labels
Implementation public function get axisLabelFunction():Function
public function set axisLabelFunction(value:Function):void
| axisLabels | property |
protected var axisLabels:Sprite
| _axisMode | property |
protected var _axisMode:int = 1are labels displayed on the boundaries (NO_PAD_AXIS - 1) or within the boundaries (PAD_AXIS - 0)
| axisMode | property |
axisMode:int [read-write]Implementation
public function get axisMode():int
public function set axisMode(value:int):void
| axisOffset | property |
public var axisOffset:int = 0
| axisStyleChanged | property |
protected var axisStyleChanged:Boolean = true
| axisStyles | property |
protected var axisStyles:Object
| axisValueType | property |
protected var axisValueType:String = "catgeory"The type of axis values catgeory or value
| _baseAtZero | property |
protected var _baseAtZero:Boolean = true
| baseAtZero | property |
baseAtZero:Boolean [read-write]Used to set the minimum value of a numerical axis to zero even if the data minimum value does not start at zero.
Implementation public function get baseAtZero():Boolean
public function set baseAtZero(value:Boolean):void
| _canHideLabels | property |
protected var _canHideLabels:Boolean
| _canRotateLabels | property |
protected var _canRotateLabels:Boolean
| _canScaleLabels | property |
protected var _canScaleLabels:Boolean
| _canStaggerLabels | property |
protected var _canStaggerLabels:Boolean
| _categoryField | property |
protected var _categoryField:String
| categoryField | property |
categoryField:String [read-write]The catgeory field
Implementation public function get categoryField():String
public function set categoryField(value:String):void
| changedStyles | property |
protected var changedStyles:Object
| _chartDataProvider | property |
protected var _chartDataProvider:ICollectionView
| _data | property |
protected var _data:Array
| data | property |
data:Array [read-write]The array of data for this axis
Implementation public function get data():Array
public function set data(value:Array):void
| _dataLabelFormat | property |
protected var _dataLabelFormat:String
| dataLabelFormat | property |
dataLabelFormat:String [read-write]The format sting to format values into point labels
Implementation public function get dataLabelFormat():String
public function set dataLabelFormat(value:String):void
| dataLabelFormatter | property |
protected var dataLabelFormatter:IDataFormatter
| _dataLabelFunction | property |
protected var _dataLabelFunction:Function
| dataLabelFunction | property |
dataLabelFunction:Function [read-write]The user custom function to format values into point labels
Implementation public function get dataLabelFunction():Function
public function set dataLabelFunction(value:Function):void
| _dataProvider | property |
protected var _dataProvider:ICollectionView
| dataProvider | property |
dataProvider:Object [read-write]The source of the chart items. The data model for items viewed in a chart. The value of this property can be an array or any object that implements the DataProvider API.
Implementation public function get dataProvider():Object
public function set dataProvider(value:Object):void
| dataProviderChanged | property |
protected var dataProviderChanged:Boolean = false
| dataType | property |
public var dataType:String = "String"The type of data this axis represents Used to help in formatting the values for display
| displayName | property |
public var displayName:StringThe name or title to display in dataTips/dataLabels
| _explicitInterval | property |
protected var _explicitInterval:Number = NaN
| _explicitIntervalCount | property |
protected var _explicitIntervalCount:Number
| _explicitMaxValue | property |
protected var _explicitMaxValue:Number = NaN
| _explicitMinValue | property |
protected var _explicitMinValue:Number = NaN
| gridBackground | property |
protected var gridBackground:Shape
| gridForeground | property |
protected var gridForeground:Shape
| index | property |
index:int [read-write]Axis index
Implementation public function get index():int
public function set index(value:int):void
| _interval | property |
protected var _interval:Number = 0
| interval | property |
interval:Number [read-write]Specifies the interval of major tick marks, labels and gridlines on the selected axis
Implementation public function get interval():Number
public function set interval(value:Number):void
| _intervalCount | property |
protected var _intervalCount:Number = 0
| intervalCount | property |
intervalCount:Number [read-write]num of labels displayed
Implementation public function get intervalCount():Number
public function set intervalCount(value:Number):void
| isHorizontal | property |
isHorizontal:Boolean [read-only]Is the axis displayed horizontally If false the axis is being displayed vertically
Implementation public function get isHorizontal():Boolean
| _labelFormat | property |
protected var _labelFormat:String
| _labelFunction | property |
protected var _labelFunction:Function
| _labelGap | property |
protected var _labelGap:int
| labelHSpace | property |
protected var labelHSpace:int = 0The amount of horizontal space to reserve for each label
| _labelRotation | property |
protected var _labelRotation:int
| _labelScale | property |
protected var _labelScale:Number = 1The scale of a label
| labelsChanged | property |
protected var labelsChanged:Boolean = false
| labelStyleChanged | property |
protected var labelStyleChanged:Boolean = true
| labelStyles | property |
protected var labelStyles:Object
| labelVSpace | property |
protected var labelVSpace:int = 0The amount of vertical space to reserve for each label
| length | property |
length:Number [read-only]The length of the axis in pixels
Implementation public function get length():Number
| _markers | property |
protected var _markers:Array
| markers | property |
markers:Array [read-write]Implementation
public function get markers():Array
public function set markers(value:Array):void
| _maxDataValue | property |
protected var _maxDataValue:Number = NaN
| maxDataValue | property |
maxDataValue:Number [read-only]The max value of the data
Implementation public function get maxDataValue():Number
| _maxValue | property |
protected var _maxValue:Number = -Infinity
| maxValue | property |
maxValue:Number [read-write]The max value of the axis
Implementation public function get maxValue():Number
public function set maxValue(value:Number):void
| _minDataValue | property |
protected var _minDataValue:Number = NaN
| minDataValue | property |
minDataValue:Number [read-only]The min value of the data
Implementation public function get minDataValue():Number
| minorIntervalCount | property |
public var minorIntervalCount:int = 1Specifies the number of minor tick marks and minor gridlines (if they are displayed) on the selected axis between major ticks
| _minValue | property |
protected var _minValue:Number = Infinity
| minValue | property |
minValue:Number [read-write]The max value of the axis
Implementation public function get minValue():Number
public function set minValue(value:Number):void
| nullStroke | property |
protected static var nullStroke:IStroke
| _parseFormat | property |
protected var _parseFormat:String
| parseFormat | property |
parseFormat:String [read-write]The format sting to parse data into values
Implementation public function get parseFormat():String
public function set parseFormat(value:String):void
| parseFormatter | property |
protected var parseFormatter:IDataFormatter
| _parseFunction | property |
protected var _parseFunction:Function
| parseFunction | property |
parseFunction:Function [read-write]The user custom function to parse data into values
Implementation public function get parseFunction():Function
public function set parseFunction(value:Function):void
| placement | property |
placement:String [read-write]lacement of axis left/right/top/bottom
Implementation public function get placement():String
public function set placement(value:String):void
| prefix | property |
public var prefix:String = ""last label prefix
| range | property |
range:Number [read-only]The axis range
Implementation public function get range():Number
| series | property |
protected var series:ArrayThe series object who have registered with this axis
| _showLabels | property |
protected var _showLabels:Boolean
| suffix | property |
public var suffix:String = ""last label suffix
| ticks | property |
public var ticks:Arrayarray of axis tick descriptors
| title | property |
public var title:StringThe name or title to display along the axis
| type | property |
public var type:StringThe axis type "x" or "y"
| Axis | () | constructor |
public function Axis()Constructor create a new Axis instance
| addSeries | () | method |
public function addSeries(series:IAxisSeries):voidAdds a series to this axis Called by a a series to register itself with the axis
Parametersseries:IAxisSeries |
| adjustScale | () | method |
protected function adjustScale():void
| calcInterval | () | method |
protected function calcInterval():void
| calcRange | () | method |
protected function calcRange():BooleanCalculates the max,min,interval and interval count as required.
ReturnsBoolean — true if the range has changed otherwise false
|
| commitProperties | () | method |
protected override function commitProperties():void
| decodeField | () | method |
public function decodeField(items:Array, inputField:String, outputField:String):voidDecode the value of a field in an array of items
Parametersitems:Array |
|
inputField:String |
|
outputField:String |
| decodeValue | () | method |
public function decodeValue(value:*):NumberDecode a single value into a number
Parametersvalue:* |
Number |
| drawAxis | () | method |
protected function drawAxis(unscaledWidth:Number, unscaledHeight:Number):voidDraw the axis
ParametersunscaledWidth:Number |
|
unscaledHeight:Number |
| formatAxisLabel | () | method |
public function formatAxisLabel(value:*):StringParameters
value:* |
String |
| formatAxisValue | () | method |
public function formatAxisValue(value:*):StringFormat a value for display on the axis
Parametersvalue:* |
String |
| formatDataLabel | () | method |
public function formatDataLabel(value:*):StringParameters
value:* |
String |
| formatDataValue | () | method |
public function formatDataValue(value:*):StringFormat a value for display in a DataTip
Parametersvalue:* |
String |
| getAxisLabelFormatter | () | method |
| getDataLabelFormatter | () | method |
| getDataMax | () | method |
protected function getDataMax():Number
Returns
Number |
| getDataMin | () | method |
protected function getDataMin():Number
Returns
Number |
| getDataType | () | method |
protected function getDataType(value:*):StringReturns the type of data represented by value
Parametersvalue:* |
String — one of Date, Number, String, XML or Object
|
| getFormatter | () | method |
protected function getFormatter(type:String):IDataFormatterParameters
type:String |
IDataFormatter |
| getIntervals | () | method |
protected function getIntervals():ArrayReturn and array of interval or tick points
ReturnsArray |
| getOrigin | () | method |
public function getOrigin():Number
Returns
Number |
| getParseFormatter | () | method |
| getScreenPosition | () | method |
public function getScreenPosition(value:Number):NumberReturns the screen position of a given data value or index
Parametersvalue:Number — The value (for a value axis) or index (for a catgeory axis)
|
Number — The screen position in pixels for this axis
|
| getSeriesMax | () | method |
protected function getSeriesMax():Number
Returns
Number |
| getSeriesMin | () | method |
protected function getSeriesMin():Number
Returns
Number |
| getStyleProperties | () | method |
protected function getStyleProperties():void
| initialize | () | method |
protected override function initialize():void
| invalidateAxis | () | method |
public function invalidateAxis():void
| invalidateFormatters | () | method |
protected function invalidateFormatters():void
| invalidateLabels | () | method |
protected function invalidateLabels():void
| invalidateRange | () | method |
protected function invalidateRange():void
| resetRange | () | method |
public function resetRange():voidPrepares the selected axis for new data by resetting scale values
| seriesDataChangedHandler | () | method |
public function seriesDataChangedHandler(e:Event):voidCalled by a Series to notify its underlying data has changed
Parameterse:Event |
| setAxisLabels | () | method |
protected function setAxisLabels(data:Array):voidSet the label string into the array of AxisItems
Parametersdata:Array — The array of AxisItems
|
| setAxisTicks | () | method |
protected function setAxisTicks(data:Array, majorInterval:int, stagger:int):voidSet the isTick and disposition properties into the array of AxisItems
Parametersdata:Array — The array of AxisItems
|
|
majorInterval:int |
|
stagger:int |
| setChartDataProvider | () | method |
protected function setChartDataProvider(value:Object):voidParameters
value:Object |
| setDataProvider | () | method |
protected function setDataProvider(value:ICollectionView):voidParameters
value:ICollectionView |
| setIntervals | () | method |
protected function setIntervals(length:Number):voidCreate the axis labels
Parameterslength:Number |
| setIntervalSpacing | () | method |
protected function setIntervalSpacing(data:Array):voidSets the position value into the array of AxisItems
Parametersdata:Array — The array of AxisItems
|
| setLabelFormats | () | method |
protected function setLabelFormats():voidSets the label format strings Called before the AxisItems are generated to allow subclasses to adjust the format strings before they are used
| setLabelSpace | () | method |
protected function setLabelSpace():void
| styleChanged | () | method |
public override function styleChanged(styleProp:String):voidParameters
styleProp:String |
| toScreen | () | method |
public function toScreen(items:Array, inputField:String, outputField:String, dimensionSize:int):voidConverts data value to screen coordinates
Parametersitems:Array |
|
inputField:String |
|
outputField:String |
|
dimensionSize:int |
| updateAxisConfig | () | method |
protected function updateAxisConfig():void
| updateAxisData | () | method |
public function updateAxisData(cursor:IViewCursor):voidLoad the data from the cursor
Parameterscursor:IViewCursor |
| updateDisplayList | () | method |
protected override function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):voidDraw the axis
ParametersunscaledWidth:Number |
|
unscaledHeight:Number |
| updateStyleProperties | () | method |
protected function updateStyleProperties():void
| validateRange | () | method |
protected function validateRange():BooleanEnsures the axis min/max and interval are correct This is called during the commit stage It presumes that any dependent properties have been updated by this stage
ReturnsBoolean |
| AXIS_PLACEMENT_BOTTOM | constant |
public static const AXIS_PLACEMENT_BOTTOM:String = "bottom"The constant for the type of tick - inside the axis
| AXIS_PLACEMENT_LEFT | constant |
public static const AXIS_PLACEMENT_LEFT:String = "left"The constant for the type of tick - cross the axis
| AXIS_PLACEMENT_RIGHT | constant |
public static const AXIS_PLACEMENT_RIGHT:String = "right"The constant for the type of tick - no tick mark
| AXIS_PLACEMENT_TOP | constant |
public static const AXIS_PLACEMENT_TOP:String = "top"The constant for the type of tick - outside the axis
| AXIS_VALUE_TYPE_CATEGORY | constant |
public static const AXIS_VALUE_TYPE_CATEGORY:String = "catgeory"Constant for the axisValueType property for an axis which represents values as categories
| AXIS_VALUE_TYPE_VALUE | constant |
public static const AXIS_VALUE_TYPE_VALUE:String = "value"Constant for the axisValueType property for an axis which represents values as values
| AXISX | constant |
public static const AXISX:String = "x"Constant for the axis type property for a x axis
| AXISY | constant |
public static const AXISY:String = "y"Constant for the axis type property for a y axis
| NO_PAD_AXIS | constant |
public static const NO_PAD_AXIS:int = 1Constant for the axis mode property Usually catgeories and values start at the beginning of the axis and end at the end of the axis. However certain types which would render outisde the chart bounds need to be padded, like bars for example.
| PAD_AXIS | constant |
public static const PAD_AXIS:int = 0Constant for the axis mode property. Usually catgeories and values start at the beginning of the axis and end at the end of the axis. However certain types which would render outisde the chart bounds need to be padded, like bars for example.
| TICK_PLACEMENT_CROSS | constant |
public static const TICK_PLACEMENT_CROSS:String = "cross"The constant for the type of tick - cross the axis
| TICK_PLACEMENT_INSIDE | constant |
public static const TICK_PLACEMENT_INSIDE:String = "inside"The constant for the type of tick - inside the axis
| TICK_PLACEMENT_NONE | constant |
public static const TICK_PLACEMENT_NONE:String = "none"The constant for the type of tick - no tick mark
| TICK_PLACEMENT_OUTSIDE | constant |
public static const TICK_PLACEMENT_OUTSIDE:String = "outside"The constant for the type of tick - outside the axis