Apache Flex 4.16.0 API Reference | All Packages | All Classes | Index | Frames No Frames |
AxisLabel

Package | mx.charts
Class | public class AxisLabel
Inheritance | AxisLabel 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

mx.charts.AxisRenderer
mx.charts.chartClasses.IAxis

Public Properties

| Property | Defined By
--- | --- | ---
|  | position : Number The position, specified as a value between 0 and 1, of the label along the axis. | AxisLabel
|  | text : String The text label that is actually rendered along the axis. | AxisLabel
|  | value : Object The value that the label represents. | AxisLabel

Public Methods

| Method | Defined By
--- | --- | ---
|  | AxisLabel(position:Number = 0, value:Object = null, text:String = null) Constructor. | AxisLabel

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.

Sun Mar 5 2017, 03:42 PM +11:00