Hit Test

This view demonstrates the use of the FlexChart's hitTest method.

The hitTest method takes a point and returns the nearest chart element. It can be used to provide interactive features such as clickable regions, drill-downs, etc.

Move mouse over chart to see information about the chart element that is closest to the mouse.

Chart element: {{chartElement}}
Series name: {{hitInfo?.series?.name}}
Point index: {{hitInfo?.pointIndex}}
Distance: {{hitInfo?.distance | number:'1.0-0'}}
x:{{point?.x | number:'1.2-2'}}
y:{{point?.y| number:'1.2-2'}}