Legend.hitTest Method
Determines what legend items are represented at the specified position. This will usually be a single item but could be more than one if items overlap.
Parameters
- offsetX
-
Type: Number
The position to test in pixels relative to the left edge of the control.
- offsetY
-
Type: Number
The position to test in pixels relative to the top edge of the control.
- target
-
Type: HTMLElement
The HTML element located at the position (required).
Return Value
Type: Array
ElementType: LegendItem
The data control elements represented by the HTML element at the specified position; or null if none.