Adobe® Flex® 4 Language Reference
Show Packages and Classes List |  Packages  |  Classes  |  Index  |  Appendixes
mx.charts 
AxisLabel 
Packagemx.charts
Classpublic class AxisLabel
InheritanceAxisLabel Inheritance Object

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

An AxisLabel object represents a single label on the chart axis. AxisLabel objects are generated by IAxis objects. The AxisLabel object is also passed as the data to custom AxisLabel objects that implement the IDataRenderer interface.

See also



Public Properties
 PropertyDefined By
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
  position : Number
The position, specified as a value between 0 and 1, of the label along the axis.
AxisLabel
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
  text : String
The text label that is actually rendered along the axis.
AxisLabel
  value : Object
The value that the label represents.
AxisLabel
Public Methods
 MethodDefined By
  
AxisLabel(position:Number = 0, value:Object = null, text:String = null)
Constructor.
AxisLabel
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Property Detail

position

property
public var position:Number

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

The position, specified as a value between 0 and 1, of the label along the axis. An AxisLabel with a position of 0 is placed at the minimum value of the axis, while an AxisLabel with a position of 1 is placed at the maximum value of the axis.

text

property 
public var text:String

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

The text label that is actually rendered along the axis.

value

property 
public var value:Object

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

The value that the label represents. The particular type of the value property is specific to the axis that generated the label. For example, a LinearAxis might generate numeric values, while a DateTimeAxis might generate Date instance values.

Constructor Detail

AxisLabel

()Constructor
public function AxisLabel(position:Number = 0, value:Object = null, text:String = null)

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Constructor.

Parameters
position:Number (default = 0) — The position, specified as a value between 0 and 1, of the label along the axis.
 
value:Object (default = null) — The value the label represents.
 
text:String (default = null) — The text label that is actually rendered along the axis.