패키지 | mx.charts.chartClasses |
인터페이스 | public interface IAxis extends IEventDispatcher |
구현자 | CategoryAxis, NumericAxis |
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Classes implement this interface to provide range definition functionality.
관련 API 요소
속성 | 정의 주체 | ||
---|---|---|---|
baseline : Number [읽기 전용]
The baseline position for the axis. | IAxis | ||
chartDataProvider : Object [쓰기 전용]
The data provider assigned to the enclosing chart. | IAxis | ||
displayName : String [읽기 전용]
The name of the axis. | IAxis | ||
title : String [읽기 전용]
The text for the title displayed along the axis. | IAxis | ||
unitSize : Number [읽기 전용]
The size of one unit of data as represented by this axis. | IAxis |
메서드 | 정의 주체 | ||
---|---|---|---|
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
리스너에서 이벤트 알림을 받을 수 있도록 EventDispatcher 객체에 이벤트 리스너 객체를 등록합니다. | IEventDispatcher | ||
Triggers events that inform the range object
when the chart data has changed. | IAxis | ||
이벤트를 이벤트 흐름으로 전달합니다. | IEventDispatcher | ||
Filters a set of values of arbitrary type
to a set of numbers that can be mapped. | IAxis | ||
Formats values for display in DataTips. | IAxis | ||
Determines the range to estimate what the axis labels should be. | IAxis | ||
Gets the labels text that is rendered. | IAxis | ||
EventDispatcher 객체에 특정 유형의 이벤트에 대한 리스너가 등록되어 있는지 여부를 확인합니다. | IEventDispatcher | ||
Maps a position along the axis back to a numeric data value. | IAxis | ||
Converts a set of values of arbitrary type
to a set of numbers that can be transformed into screen coordinates. | IAxis | ||
Determines how the axis handles overlapping labels. | IAxis | ||
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. | IAxis | ||
Each DataTransform that makes use of an axis
registers itself with that axis. | IAxis | ||
EventDispatcher 객체에서 리스너를 제거합니다. | IEventDispatcher | ||
Maps a set of values from data space to screen space. | IAxis | ||
Each DataTransform that makes use of an axis
registers itself with that axis. | IAxis | ||
Updates the chart. | IAxis | ||
이 EventDispatcher 객체 또는 조상 객체에 지정한 이벤트 유형에 대한 이벤트 리스너가 등록되어 있는지 여부를 확인합니다. | IEventDispatcher |
baseline | 속성 |
baseline:Number
[읽기 전용] 언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The baseline position for the axis. Some series, such as ColumnSeries or AreaSeries, use this value to define the base of a filled region when no minimum value is specified.
구현
public function get baseline():Number
chartDataProvider | 속성 |
chartDataProvider:Object
[쓰기 전용] 언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The data provider assigned to the enclosing chart.
Axis types that are data provider-based can choose to inherit
the data provider associated with the enclosing chart.
If an axis is shared among multiple charts,
the value of this property is undefined
(most likely it will be the last data provider assigned
to one of the associated charts).
구현
public function set chartDataProvider(value:Object):void
displayName | 속성 |
title | 속성 |
unitSize | 속성 |
unitSize:Number
[읽기 전용] 언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
The size of one unit of data as represented by this axis.
This value is used by various series types to help in rendering.
The ColumnSeries class, for example, uses this value
to determine how wide columns should be rendered.
Different axis types return different values,
sometimes dependent on the data being represented.
The DateTimeAxis class, for example, might return the number
of milliseconds in a day, or a year, depending on the data
that is rendered in the chart.
Because this value is dependant on collecting the represented data,
custom series cannot assume this value is accurate in their
updateData()
or updateMapping()
methods.
구현
public function get unitSize():Number
dataChanged | () | 메서드 |
public function dataChanged():void
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Triggers events that inform the range object when the chart data has changed.
filterCache | () | 메서드 |
public function filterCache(cache:Array, field:String, filteredString: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.
| |
filteredString: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.
|
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.
|
registerDataTransform | () | 메서드 |
public function registerDataTransform(transform:mx.charts.chartClasses:DataTransform, dimensionName:String):void
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Each DataTransform that makes use of an axis registers itself with that axis. The axis is responsible for informing the transform when its relevant values have changed. It should also request values from the transform when it wants to autogenerate minimum and maximum values.
매개 변수
transform:mx.charts.chartClasses:DataTransform — The DataTransform to register.
| |
dimensionName:String — The name of the dimension.
|
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.
|
unregisterDataTransform | () | 메서드 |
public function unregisterDataTransform(transform:mx.charts.chartClasses:DataTransform):void
언어 버전: | ActionScript 3.0 |
제품 버전: | Flex 3 |
런타임 버전: | Flash Player 9, AIR 1.1 |
Each DataTransform that makes use of an axis registers itself with that axis. The axis is responsible for informing the transform when its relevant values have changed. It should also request values from the transform when it wants to autogenerate minimum and maximum values.
매개 변수
transform:mx.charts.chartClasses:DataTransform — The DataTransform to unregister.
|
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