Skip to main content

TdxChartHitTest.Point Property

Returns pixel coordinates of the inspected point within the Chart control’s client area.

Declaration

property Point: TPoint read;

Property Value

Type Description
TPoint

Use Point.X and Point.Y properties to obtain horizontal and vertical coordinates of the inspected point within the Chart control’s client area.

Remarks

Use the Point property to obtain inspected point pixel coordinates.

VCL Chart Control: Inspected Point Coordinates and Visual Chart Elements

To identify what visual Chart element is at the inspected point, use the HitCode property.

Chart HitTest Information

Chart HitTest information updates every time when:

  • The OnHotTrackElement or OnMouseMove event occurs. Point.X and Point.Y property values change to the corresponding mouse pointer coordinates. Argument and Value property values change to corresponding coordinates (in axis measurement units) if the inspected point is within the plot area of an XY diagram.
  • You call the CalculateHitTest procedure. Point.X and Point.Y property values change to the procedure’s X and Y parameter values.
See Also