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

An integer value that specifies the x coordinate of the test point.

y number

An integer value that specifies the y coordinate of the test point.

Returns

Type Description
js-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