패키지 | mx.charts.chartClasses |
클래스 | public class NumericAxis |
상속 | NumericAxis AxisBase EventDispatcher Object |
구현 | IAxis |
하위 클래스 | DateTimeAxis, LinearAxis, LogAxis |
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
기타 예제
관련 API 요소
속성 | 정의 주체 | ||
---|---|---|---|
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 [읽기 전용]
The computed minimum value for the axis
as long as this value is greater than 0. | NumericAxis | ||
chartDataProvider : Object [쓰기 전용]
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 | ||
constructor : Object
지정된 객체 인스턴스의 클래스 객체 또는 생성자 함수에 대한 참조입니다. | Object | ||
direction : String
Determines the direction in which the axis is rendered. | NumericAxis | ||
displayName : String
The name of the axis. | AxisBase | ||
labelFunction : Function
Called to format axis values for display as labels. | NumericAxis | ||
minorTicks : Array [읽기 전용]
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 [읽기 전용]
The size of one unit of data as represented by this axis. | AxisBase |
속성 | 정의 주체 | ||
---|---|---|---|
assignedMaximum : Number
The explicitly assigned maximum value. | NumericAxis | ||
assignedMinimum : Number
The explicitly assigned minimum value. | NumericAxis | ||
computedInterval : Number
The computed interval represented by this axis. | NumericAxis | ||
dataDescriptions : Array [읽기 전용]
An Array of DataDescription structures describing the data being represented by the chart. | NumericAxis | ||
labelCache : Array
The most recent set of AxisLabel objects
generated to represent this axis. | NumericAxis | ||
labelMaximum : Number
The maximum value where a label should be placed. | NumericAxis | ||
labelMinimum : Number
The minimum value where a label should be placed. | NumericAxis | ||
minorTickCache : Array
The most recent set of minor tick marks generated to represent this axis. | NumericAxis | ||
requiredDescribedFields : uint [읽기 전용]
The fields of the DescribeData structure that this axis is interested in. | NumericAxis | ||
ticks : Array [읽기 전용]
An Array of tick marks for this axis. | NumericAxis |
메서드 | 정의 주체 | ||
---|---|---|---|
Constructor. | NumericAxis | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
리스너에서 이벤트 알림을 받을 수 있도록 EventDispatcher 객체에 이벤트 리스너 객체를 등록합니다. | EventDispatcher | ||
Triggers events that inform the range object
when the chart data has changed. | AxisBase | ||
이벤트를 이벤트 흐름으로 전달합니다. | EventDispatcher | ||
Filters a set of values of arbitrary type
to a set of numbers that can be mapped. | NumericAxis | ||
Formats values for display in DataTips. | NumericAxis | ||
Determines the range to estimate what the axis labels should be. | NumericAxis | ||
Gets the labels text that is rendered. | NumericAxis | ||
EventDispatcher 객체에 특정 유형의 이벤트에 대한 리스너가 등록되어 있는지 여부를 확인합니다. | EventDispatcher | ||
지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다. | Object | ||
Maps a position along the axis back to a numeric data value. | NumericAxis | ||
Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다. | Object | ||
Converts a set of values of arbitrary type
to a set of numbers that can be transformed into screen coordinates. | NumericAxis | ||
Determines how the axis handles overlapping labels. | NumericAxis | ||
지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다. | Object | ||
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 | ||
Each DataTransform that makes use of an axis
registers itself with that axis. | AxisBase | ||
EventDispatcher 객체에서 리스너를 제거합니다. | EventDispatcher | ||
루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다. | Object | ||
로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다. | Object | ||
지정된 객체의 문자열 표현을 반환합니다. | Object | ||
Maps a set of values from data space to screen space. | NumericAxis | ||
Each DataTransform that makes use of an axis
registers itself with that axis. | AxisBase | ||
Updates the chart. | NumericAxis | ||
지정된 객체의 프리미티브 값을 반환합니다. | Object | ||
이 EventDispatcher 객체 또는 조상 객체에 지정한 이벤트 유형에 대한 이벤트 리스너가 등록되어 있는지 여부를 확인합니다. | EventDispatcher |
메서드 | 정의 주체 | ||
---|---|---|---|
Adjusts the generated or assigned range of the axis's labels. | NumericAxis | ||
Populates the labelCache property with labels representing the current
values of the axis. | NumericAxis | ||
Builds an Array of positions for the minor tick marks Array that is generated by this axis. | NumericAxis | ||
Called by the governing DataTransform to obtain a description
of the data represented by this IChartElement. | AxisBase | ||
Protects the range against invalid values for this axis type. | NumericAxis | ||
Invalidates the cached labels and tick marks that represent this axis's values. | NumericAxis |
assignedMaximum | 속성 |
protected var assignedMaximum:Number
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The explicitly assigned maximum value.
If no value has been assigned, this will be NaN
.
Typically, calculations should be performed
with the computedMaximum
field.
assignedMinimum | 속성 |
protected var assignedMinimum:Number
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The explicitly assigned minimum value.
If no value has been assigned, this will be NaN
.
Typically calculations should be performed
with the computedMinimum
field.
autoAdjust | 속성 |
autoAdjust:Boolean
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Specifies whether Flex rounds values.
If false
, Flex does not round the values
set by the minimum
and maximum
properties,
or modify the default minimum
and
maximum
values.
기본값: true.
구현
public function get autoAdjust():Boolean
public function set autoAdjust(value:Boolean):void
baseAtZero | 속성 |
baseAtZero:Boolean
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Specifies whether Flex tries to keep the minimum
and maximum
values rooted at zero.
If all axis values are positive, the minimum axis value is zero.
If all axis values are negative, the maximum axis value is zero.
기본값: true.
구현
public function get baseAtZero():Boolean
public function set baseAtZero(value:Boolean):void
baseline | 속성 |
baseline:Number
[읽기 전용] 언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The computed minimum value for the axis
as long as this value is greater than 0.
If the maximum value is less than or equal to 0,
then the baseline
property is the computed maximum.
If neither value is greater than 0,
then the baseline
property is 0.
구현
public function get baseline():Number
computedInterval | 속성 |
protected var computedInterval:Number
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The computed interval represented by this axis.
The computedInterval
is used
by the AxisRenderer and Gridlines classes
to determine where to render tick marks and grid lines.
The NumericAxis base class watches this field for changes
to determine if the chart needs to be re-rendered.
Derived classes are responsible for computing the value
of this field.
computedMaximum | 속성 |
public var computedMaximum:Number
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The computed maximum value represented by this axis.
If the user has explicitly assigned a maximum value,
the computedMaximum
and
assignedMaximum
properties
are usually the same.
Otherwise, the computedMaximum
is generated
from the values represented in the chart.
computedMinimum | 속성 |
public var computedMinimum:Number
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The computed minimum value represented by this axis.
If the user has explicitly assigned a minimum value,
the computedMinimum
and
assignedMinimum
properties
are usually be the same.
Otherwise, the computedMinimum
is generated
from the values represented in the chart.
dataDescriptions | 속성 |
dataDescriptions:Array
[읽기 전용] 언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
An Array of DataDescription structures describing the data being represented by the chart. An axis can use this property to generate values for properties, such as its range.
구현
protected function get dataDescriptions():Array
direction | 속성 |
direction:String
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 4 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Determines the direction in which the axis is rendered.
Possible values are normal
,
and inverted
.
All derived classes should take care of the way min and max
are set depending on direction
.
All series should take care of the way it is rendered
depending on the direction
of its underlying axis.
기본값: "normal".
구현
public function get direction():String
public function set direction(value:String):void
labelCache | 속성 |
protected var labelCache:Array
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The most recent set of AxisLabel objects
generated to represent this axis.
This property is null
if the axis
has been modified and requires new labels.
To guarantee that the value of the labelCache
property
is correct, call the buildLabelCache()
method
before accessing the labelCache
property.
labelFunction | 속성 |
labelFunction:Function
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Called to format axis values for display as labels.
A labelFunction
has the following signature:
function function_name(labelValue:Object, previousValue:Object, axis:IAxis):String { ... }
If you know the types of the data your function will be formatting,
you can specify an explicit type for the labelValue
and previousValue
parameters.
구현
public function get labelFunction():Function
public function set labelFunction(value:Function):void
labelMaximum | 속성 |
protected var labelMaximum:Number
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The maximum value where a label should be placed. After computing an adjusted minimum value, many axis types expand the range of the axis further to make room for additional rendering artifacts in the chart, such as labels and borders. This value represents the maximum value in the chart before it is adjusted for these artifacts. Typically axes generate labels to make sure this value is labeled, rather than the adjusted maximum of the axis.
labelMinimum | 속성 |
protected var labelMinimum:Number
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The minimum value where a label should be placed. After computing an adjusted minimum value, many axis types expand the range of the axis further to make room for additional rendering artifacts in the chart, such as labels and borders. This value represents the minimum value in the chart before it is adjusted for these artifacts. Typically axes will generate labels to make sure this value is labeled, rather than the adjusted minimum of the axis.
minorTickCache | 속성 |
protected var minorTickCache:Array
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The most recent set of minor tick marks generated to represent this axis.
This property may be null
if the axis
has been modified and requires new labels and tick marks.
Use the public accessor minorTicks
to build the minor tick marks on demand.
minorTicks | 속성 |
padding | 속성 |
padding:Number
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Specifies padding that Flex adds to the calculated minimum and maximum values for the axis when rendering the values on the screen.
구현
public function get padding():Number
public function set padding(value:Number):void
parseFunction | 속성 |
parseFunction:Function
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Specify a parseFunction
to customize how
the values rendered by your chart are converted into numeric values.
A custom parseFunction
is passed a data value
and should return a corresponding number representing the same value.
By default, this axis uses the ECMA function parseFloat()
.
구현
public function get parseFunction():Function
public function set parseFunction(value:Function):void
requiredDescribedFields | 속성 |
ticks | 속성 |
NumericAxis | () | 생성자 |
public function NumericAxis()
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Constructor.
adjustMinMax | () | 메서드 |
protected function adjustMinMax(minValue:Number, maxValue:Number):void
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Adjusts the generated or assigned range of the axis's labels. This method is called during the update cycle of the axis. Subclasses can override this method to do special processing on the values. By default, no adjustments are made to the range.
매개 변수
minValue:Number — The computed minimum value.
| |
maxValue:Number — The computed maximum value.
|
buildLabelCache | () | 메서드 |
protected function buildLabelCache():Boolean
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Populates the labelCache
property with labels representing the current
values of the axis. Subclasses must implement this function. This function is called
many times, so you should check to see if the labelCache
property
is null
before performing any calculations.
Boolean — true if the labels were regenerated.
|
buildMinorTickCache | () | 메서드 |
protected function buildMinorTickCache():Array
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Builds an Array of positions for the minor tick marks Array that is generated by this axis.
Subclasses must implement this function. This function is called automatically
by the NumericAxis. You should access the minorTicks
property
instead of calling this function directly.
Array — An Array of positions from 0 to 1 that represent points between the axis
minimum and maximum values where minor tick marks are rendered.
|
filterCache | () | 메서드 |
public function filterCache(cache:Array, field:String, filteredField:String):void
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Filters a set of values of arbitrary type to a set of numbers that can be mapped.
매개 변수
cache:Array — An Array of objects where converted values
are read from and stored.
| |
field:String — The field of the objects in the cache Array
containing the pre-filtered values.
| |
filteredField:String — The field of the objects in the cache Array
where filtered values should be stored.
|
formatForScreen | () | 메서드 |
getLabelEstimate | () | 메서드 |
public function getLabelEstimate():AxisLabelSet
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Determines the range to estimate what the axis labels should be.
The axis almost immediately calls the getLabels()
method
to get the real values.
The axis uses the estimated values to adjust chart margins,
so any difference between the estimated labels and actual labels
(returned from the getLabels()
method) results in scaling
the labels to fit.
An axis need only return the minimum and maximum labels when returning an estimate. If the label set is fairly static, without depending on the size of the axis being rendered on screen, an axis can return the entire label set from this function, and mark the estimate as accurate.
반환값AxisLabelSet — An Array of AxisLabel objects.
|
getLabels | () | 메서드 |
public function getLabels(minimumAxisLength:Number):AxisLabelSet
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Gets the labels text that is rendered. When Flex calls this method, the axis has already determined the minimum length of the label.
매개 변수
minimumAxisLength:Number — The minimum length of the axis, in pixels.
The axis can be longer than this value, but not shorter.
|
AxisLabelSet — An array of AxisLabel objects.
|
guardMinMax | () | 메서드 |
protected function guardMinMax(min:Number, max:Number):Array
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Protects the range against invalid values for this axis type. This function is called during the update cycle of the axis to guarantee that invalid ranges are not generated. Subclasses can override this class and define logic that is appropriate to their axis type.
매개 변수
min:Number — The computed minimum value.
| |
max:Number — The computed maximum value.
|
Array — null if no adjustment is necessary, or an Array containing the adjusted
values of the form [min,max] .
|
invalidateCache | () | 메서드 |
protected function invalidateCache():void
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Invalidates the cached labels and tick marks that represent this axis's values. Derived classes should call this function whenever values used in the calculation of labels and tick marks change.
invertTransform | () | 메서드 |
public function invertTransform(value:Number):Object
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Maps a position along the axis back to a numeric data value.
매개 변수
value:Number — The bound of the axis.
This parameter should be between 0 and 1,
with 0 representing the minimum bound of the axis, and 1 the maximum.
|
Object — An object containing the transformed value.
|
mapCache | () | 메서드 |
public function mapCache(cache:Array, field:String, convertedField:String, indexValues:Boolean = false):void
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Converts a set of values of arbitrary type to a set of numbers that can be transformed into screen coordinates.
매개 변수
cache:Array — An Array of objects where converted values
are read from and stored.
| |
field:String — The field of the objects in the cache Array
containing the pre-converted values.
| |
convertedField:String — The field of the objects in the cache Array
where converted values should be stored.
| |
indexValues:Boolean (default = false ) — This parameter is true if the values being mapped
are index values, and false if they are natural data values.
|
preferDropLabels | () | 메서드 |
public function preferDropLabels():Boolean
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Determines how the axis handles overlapping labels.
Typically, numeric ranges return true
,
while discrete value-based ranges do not.
You can can override this property by setting it directly on the axis.
Boolean — true if labels can be dropped without loss of data;
otherwise, false .
|
reduceLabels | () | 메서드 |
public function reduceLabels(intervalStart:AxisLabel, intervalEnd:AxisLabel):AxisLabelSet
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
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. The method is passed the two labels that are overlapping.
매개 변수
intervalStart:AxisLabel — The start of the interval where labels overlap.
| |
intervalEnd:AxisLabel — The end of the interval where labels overlap.
|
AxisLabelSet — A new label set that resolves the overlap by reducing
the number of labels.
|
transformCache | () | 메서드 |
public function transformCache(cache:Array, field:String, convertedField:String):void
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Maps a set of values from data space to screen space.
매개 변수
cache:Array — An Array of objects where mapped values
are read from and stored.
| |
field:String — The field of the objects in the cache Array
containing the pre-mapped values.
| |
convertedField:String — The field of the objects in the cache Array
where mapped values should be stored.
|
update | () | 메서드 |
public function update():void
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Updates the chart. This can be called multiple times per frame.
Tue Jun 12 2018, 03:17 PM Z