ChartMouseEvent

Provides information about mouse events triggered within the chart.

Props

The following table outlines the props for the ChartMouseEvent:

NameTypeDefaultDescription
axisData
{ [key: string]: number }
-

Defines a collection of axis data, where the key is the axis name and the value is the axis value at the mouse location.

target
string
-

The ID of the element that is the target of the mouse event.

x
number
-

The X-coordinate of the mouse pointer relative to the chart.

y
number
-

The Y-coordinate of the mouse pointer relative to the chart.