The HitData class represents information about the data item
at a specific location on the screen.
Flex returns the HitData structure for mouse events on chart data points.
It describes what data points are under the current mouse position.
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.
Specifies the chart element rendering this data item
that generated the HitData structure.
Implementation public function get element():IChartElement
id
property
public var id:Number
Language Version :
ActionScript 3.0
Product Version :
Flex 3
Runtime Versions :
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
property
public var item:Object
Language Version :
ActionScript 3.0
Product Version :
Flex 3
Runtime Versions :
Flash Player 9, AIR 1.1
Specifies the data item that the HitData structure describes.
x
property
public var x:Number
Language Version :
ActionScript 3.0
Product Version :
Flex 3
Runtime Versions :
Flash Player 9, AIR 1.1
Specifies the X coordinate of the data item on the screen.
y
property
public var y:Number
Language Version :
ActionScript 3.0
Product Version :
Flex 3
Runtime Versions :
Flash Player 9, AIR 1.1
Specifies the Y coordinate of the data item on the screen.
Constructor Detail
HitData
()
Constructor
public function HitData(id:Number, distance:Number, x:Number, y:Number, chartItem:ChartItem)
Language Version :
ActionScript 3.0
Product Version :
Flex 3
Runtime Versions :
Flash Player 9, AIR 1.1
Constructor.
Parameters
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.