Skip to main content

ASPxClientWebChartControl.HitTest(x, y) Method

Returns the specific chart element which is located under the test point.

Declaration

HitTest(
    x: number,
    y: number
): ASPxClientHitObject[]

Parameters

Name Type Description
x number

The x coordinate of the test point.

y number

The y coordinate of the test point.

Returns

Type Description
ASPxClientHitObject[]

An array collection of ASPxClientHitObject objects, that represent the chart elements located under the test point.

Remarks

To determine which chart element is represented by a particular ASPxClientHitObject, use its ASPxClientHitObject.Object and ASPxClientHitObject.AdditionalObject properties.

Note

The HitTest method is supported in 2D charts only. It can’t be used for 3D charts.

See Also