套件 | mx.charts |
類別 | public class HitData |
繼承 | HitData Object |
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
You can also get a HitData structure describing the data point
at a specific location in the chart using the chart control's
findDataPoints()
method.
更多範例
相關 API 元素
屬性 | 定義自 | ||
---|---|---|---|
chartItem : ChartItem
The chart item described by the hit data. | HitData | ||
constructor : Object
類別物件的參照或是特定物件實體的建構函數。 | Object | ||
contextColor : uint = 0
An RGB value that can be used to associate an on-screen
representation of the associated chartItem. | HitData | ||
dataTipFunction : Function
A function provided by the HitData creator
to generate a user-suitable String for display on screen
that describes the referenced item. | HitData | ||
displayText : String [唯讀]
A description of the associated item for display on screen. | HitData | ||
distance : Number
Specifies the distance between the data item on the screen
and the location of the mouse pointer, in pixels. | HitData | ||
element : IChartElement [唯讀]
Specifies the chart element rendering this data item
that generated the HitData structure. | HitData | ||
id : Number
Specifies a unique identifier representing the data point. | HitData | ||
item : Object
Specifies the data item that the HitData structure describes. | HitData | ||
x : Number
Specifies the X coordinate of the data item on the screen. | HitData | ||
y : Number
Specifies the Y coordinate of the data item on the screen. | HitData |
方法 | 定義自 | ||
---|---|---|---|
Constructor. | HitData | ||
指出物件是否有已定義的指定屬性。 | Object | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
會傳回指定之物件的基本值。 | Object |
chartItem | 屬性 |
public var chartItem:ChartItem
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
The chart item described by the hit data.
A chart item represents the data a series uses
to describe an individual item from its dataProvider
.
contextColor | 屬性 |
public var contextColor:uint = 0
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
An RGB value that can be used to associate an on-screen
representation of the associated chartItem
.
DataTips use this field to help render their data.
dataTipFunction | 屬性 |
public var dataTipFunction:Function
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
A function provided by the HitData creator to generate a user-suitable String for display on screen that describes the referenced item.
displayText | 屬性 |
distance | 屬性 |
public var distance:Number
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Specifies the distance between the data item on the screen and the location of the mouse pointer, in pixels.
element | 屬性 |
element:IChartElement
[唯讀] 語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Specifies the chart element rendering this data item that generated the HitData structure.
實作
public function get element():IChartElement
id | 屬性 |
public var id:Number
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Specifies a unique identifier representing the data point.
You can use this identifier to test for equality
between two HitData objects.
If two different chart elements represent the same dataProvider
entry,
they will have two different identifiers.
item | 屬性 |
public var item:Object
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Specifies the data item that the HitData structure describes.
x | 屬性 |
public var x:Number
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Specifies the X coordinate of the data item on the screen.
y | 屬性 |
public var y:Number
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Specifies the Y coordinate of the data item on the screen.
HitData | () | 建構函式 |
public function HitData(id:Number, distance:Number, x:Number, y:Number, chartItem:ChartItem)
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Constructor.
參數id:Number — Specifies a unique identifier representing the data point.
| |
distance:Number — Specifies the distance between the data item
on the screen and the location of the mouse pointer, in pixels.
| |
x:Number — Specifies the x coordinate of the data item on the screen.
| |
y:Number — Specifies the y coordinate of the data item on the screen.
| |
chartItem:ChartItem — The chart item described by the hit data.
|
Tue Jun 12 2018, 03:47 PM Z