套件 | mx.charts.chartClasses |
類別 | public class AxisBase |
繼承 | AxisBase EventDispatcher Object |
子類別 | CategoryAxis, NumericAxis |
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Flex components inherit the following properties from the AxisBase class:
<mx:tagname displayName="No default" title="No default" >
屬性 | 定義自 | ||
---|---|---|---|
chartDataProvider : Object [唯寫]
The data provider assigned to the enclosing chart. | AxisBase | ||
constructor : Object
類別物件的參照或是特定物件實體的建構函數。 | Object | ||
displayName : String
The name of the axis. | AxisBase | ||
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 |
方法 | 定義自 | ||
---|---|---|---|
AxisBase()
Constructor. | AxisBase | ||
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 | ||
會檢查 EventDispatcher 物件是否有對特定的事件類型註冊偵聽程式。 | EventDispatcher | ||
指出物件是否有已定義的指定屬性。 | Object | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
Each DataTransform that makes use of an axis
registers itself with that axis. | AxisBase | ||
會從 EventDispatcher 物件移除偵聽程式。 | EventDispatcher | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
Each DataTransform that makes use of an axis
registers itself with that axis. | AxisBase | ||
會傳回指定之物件的基本值。 | Object | ||
檢查此 EventDispatcher 物件是否已註冊事件偵聽程式,或者此物件的任何祖系已為特定事件類型註冊事件偵聽程式。 | EventDispatcher |
方法 | 定義自 | ||
---|---|---|---|
Called by the governing DataTransform to obtain a description
of the data represented by this IChartElement. | AxisBase |
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
AxisBase | () | 建構函式 |
public function AxisBase()
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Constructor.
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.
describeData | () | 方法 |
protected function describeData(requiredFields:uint):Array
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Called by the governing DataTransform to obtain a description
of the data represented by this IChartElement.
Implementors fill out and return an Array of
mx.charts.chartClasses.DataDescription objects
to guarantee that their data is correctly accounted for
by any axes that are autogenerating values
from the displayed data (such as minimum, maximum,
interval, and unitSize).
Most element types return an Array
containing a single DataDescription.
Aggregate elements, such as BarSet and ColumnSet,
might return multiple DataDescription instances
that describe the data displayed by their subelements.
When called, the implementor describes the data
along the axis indicated by the dimension
argument.
This function might be called for each axis
supported by the containing chart.
參數
requiredFields:uint — A bitfield that indicates which values
of the DataDescription object the particular axis cares about.
Implementors can optimize by only calculating the necessary fields.
|
Array — An Array of BoundedValue objects containing the DataDescription instances that describe
the data that is displayed.
|
相關 API 元素
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.
|
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.
|
Tue Jun 12 2018, 03:47 PM Z