Paket | mx.charts |
Klass | public class HitData |
Arv | HitData Object |
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | 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.
Fler exempel
Relaterade API-element
Egenskap | Definieras med | ||
---|---|---|---|
chartItem : ChartItem
The chart item described by the hit data. | HitData | ||
constructor : Object
En referens till klassobjektet eller konstruktorfunktionen för en given objektinstans. | 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 [skrivskyddad]
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 [skrivskyddad]
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 |
Metod | Definieras med | ||
---|---|---|---|
Constructor. | HitData | ||
Anger om det finns en egenskap angiven för ett objekt. | Object | ||
Anger om en instans av klassen Object finns i prototypkedjan för objektet som anges som parameter. | Object | ||
Anger om den angivna egenskapen finns och är uppräkningsbar. | Object | ||
Anger tillgänglighet för en dynamisk egenskap för slingåtgärder. | Object | ||
Returnerar det här objektets strängrepresentation, formaterad i enlighet med språkspecifika konventioner. | Object | ||
Returnerar det angivna objektets strängbeteckning. | Object | ||
Returnerar det angivna objektets primitiva värde. | Object |
chartItem | egenskap |
public var chartItem:ChartItem
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | 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 | egenskap |
public var contextColor:uint = 0
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | 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 | egenskap |
public var dataTipFunction:Function
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | 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 | egenskap |
distance | egenskap |
public var distance:Number
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | 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 | egenskap |
element:IChartElement
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Specifies the chart element rendering this data item that generated the HitData structure.
Implementering
public function get element():IChartElement
id | egenskap |
public var id:Number
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | 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 | egenskap |
public var item:Object
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Specifies the data item that the HitData structure describes.
x | egenskap |
public var x:Number
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Specifies the X coordinate of the data item on the screen.
y | egenskap |
public var y:Number
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Specifies the Y coordinate of the data item on the screen.
HitData | () | Konstruktor |
public function HitData(id:Number, distance:Number, x:Number, y:Number, chartItem:ChartItem)
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Constructor.
Parametrarid: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, 01:40 PM Z