Package | mx.charts |
Class | public class LinearAxis |
Inheritance | LinearAxis ![]() ![]() ![]() |
Language Version : | ActionScript 3.0 |
Product Version : | Flex 3 |
Runtime Versions : | Flash Player 9, AIR 1.1 |
minimum
, maximum
,
and interval
values from the charting data
to fit all of the chart elements on the screen.
You can also explicitly set specific values for these properties.
The auto-determination of range values works as follows:
autoAdjust
and baseAtZero
properties
are set to true
, Flex makes the following adjustments:
minimum
property to zero.maximum
property to zero.autoAdjust
property is set to true
,
Flex adjusts values of the minimum
and maximum
properties by rounding them up or down.minimum
and
maximum
properties accordingly.minimum
and maximum
values,
and adjusts their values accordingly.The <mx:LinearAxis>
tag inherits all the properties
of its parent classes and adds the following properties:
<mx:LinearAxis Properties interval="null" maximum="null" maximumLabelPrecision="null" minimum="null" minorInterval="null" />
See also
Property | Defined By | ||
---|---|---|---|
![]() | autoAdjust : Boolean
Specifies whether Flex rounds values. | NumericAxis | |
![]() | baseAtZero : Boolean
Specifies whether Flex tries to keep the minimum
and maximum values rooted at zero. | NumericAxis | |
![]() | baseline : Number [read-only]
The computed minimum value for the axis
as long as this value is greater than 0. | NumericAxis | |
![]() | chartDataProvider : Object [write-only]
The data provider assigned to the enclosing chart. | AxisBase | |
![]() | computedMaximum : Number
The computed maximum value represented by this axis. | NumericAxis | |
![]() | computedMinimum : Number
The computed minimum value represented by this axis. | NumericAxis | |
![]() | direction : String
Determines the direction in which the axis is rendered. | NumericAxis | |
![]() | displayName : String
The name of the axis. | AxisBase | |
interval : Number
Specifies the numeric difference between label values along the axis. | LinearAxis | ||
![]() | labelFunction : Function
Called to format axis values for display as labels. | NumericAxis | |
maximum : Number
Specifies the maximum value for an axis label. | LinearAxis | ||
maximumLabelPrecision : Number
Specifies the maximum number of decimal places for representing fractional values on the labels
generated by this axis. | LinearAxis | ||
minimum : Number
Specifies the minimum value for an axis label. | LinearAxis | ||
minorInterval : Number
Specifies the numeric difference between minor tick marks along the axis. | LinearAxis | ||
![]() | minorTicks : Array [read-only]
An Array of minor tick marks generated to represent this axis. | NumericAxis | |
![]() | padding : Number
Specifies padding that Flex adds to the calculated minimum and maximum
values for the axis when rendering the values on the screen. | NumericAxis | |
![]() | parseFunction : Function
Specify a parseFunction to customize how
the values rendered by your chart are converted into numeric values. | NumericAxis | |
![]() | title : String
The text for the title displayed along the axis. | AxisBase | |
![]() | unitSize : Number [read-only]
The size of one unit of data as represented by this axis. | AxisBase |
Method | Defined By | ||
---|---|---|---|
Constructor. | LinearAxis | ||
![]() | dataChanged():void
Triggers events that inform the range object
when the chart data has changed. | AxisBase | |
![]() | filterCache(cache:Array, field:String, filteredField:String):void
Filters a set of values of arbitrary type
to a set of numbers that can be mapped. | NumericAxis | |
![]() | formatForScreen(value:Object):String
Formats values for display in DataTips. | NumericAxis | |
![]() |
Determines the range to estimate what the axis labels should be. | NumericAxis | |
![]() | getLabels(minimumAxisLength:Number):AxisLabelSet
Gets the labels text that is rendered. | NumericAxis | |
![]() | invertTransform(value:Number):Object
Maps a position along the axis back to a numeric data value. | NumericAxis | |
![]() | mapCache(cache:Array, field:String, convertedField:String, indexValues:Boolean = false):void
Converts a set of values of arbitrary type
to a set of numbers that can be transformed into screen coordinates. | NumericAxis | |
![]() | preferDropLabels():Boolean
Determines how the axis handles overlapping labels. | NumericAxis | |
![]() |
Invoked when an AxisRenderer is unable to cleanly render
the labels without overlap, and would like the Axis object
to reduce the set of labels. | NumericAxis | |
![]() | registerDataTransform(transform:DataTransform, dimensionName:String):void
Each DataTransform that makes use of an axis
registers itself with that axis. | AxisBase | |
![]() | transformCache(cache:Array, field:String, convertedField:String):void
Maps a set of values from data space to screen space. | NumericAxis | |
![]() | unregisterDataTransform(transform:DataTransform):void
Each DataTransform that makes use of an axis
registers itself with that axis. | AxisBase | |
![]() | update():void
Updates the chart. | NumericAxis |
interval | property |
interval:Number
Language Version : | ActionScript 3.0 |
Product Version : | Flex 3 |
Runtime Versions : | Flash Player 9, AIR 1.1 |
Specifies the numeric difference between label values along the axis.
Flex calculates the interval if this property
is set to NaN
.
The default value is NaN
.
public function get interval():Number
public function set interval(value:Number):void
maximum | property |
maximum:Number
Language Version : | ActionScript 3.0 |
Product Version : | Flex 3 |
Runtime Versions : | Flash Player 9, AIR 1.1 |
Specifies the maximum value for an axis label.
If you set the autoAdjust
property to true
,
Flex calculates this value.
If NaN
, Flex determines the maximum value
from the data in the chart.
The default value is NaN
.
public function get maximum():Number
public function set maximum(value:Number):void
maximumLabelPrecision | property |
maximumLabelPrecision:Number
Language Version : | ActionScript 3.0 |
Product Version : | Flex 3 |
Runtime Versions : | Flash Player 9, AIR 1.1 |
Specifies the maximum number of decimal places for representing fractional values on the labels generated by this axis. By default, the axis autogenerates this value from the labels themselves. A value of 0 rounds to the nearest integer value, while a value of 2 rounds to the nearest 1/100th of a value.
public function get maximumLabelPrecision():Number
public function set maximumLabelPrecision(value:Number):void
minimum | property |
minimum:Number
Language Version : | ActionScript 3.0 |
Product Version : | Flex 3 |
Runtime Versions : | Flash Player 9, AIR 1.1 |
Specifies the minimum value for an axis label.
If NaN
, Flex determines the minimum value
from the data in the chart.
The default value is NaN
.
public function get minimum():Number
public function set minimum(value:Number):void
minorInterval | property |
minorInterval:Number
Language Version : | ActionScript 3.0 |
Product Version : | Flex 3 |
Runtime Versions : | Flash Player 9, AIR 1.1 |
Specifies the numeric difference between minor tick marks along the axis.
Flex calculates the difference if this property
is set to NaN
.
public function get minorInterval():Number
public function set minorInterval(value:Number):void
LinearAxis | () | Constructor |
public function LinearAxis()
Language Version : | ActionScript 3.0 |
Product Version : | Flex 3 |
Runtime Versions : | Flash Player 9, AIR 1.1 |
Constructor.