EventTracker Plugin Reference

The EventTracker plugin allows you to handle a click on the chart's plot.

Import

Use the following statement to import the plugin:

import { EventTracker } from '@devexpress/dx-react-chart';

User Reference

Properties

Name Type Default Description
onClick? (target: TargetData) => void A function that is executed when the chart's plot is clicked.
onPointerMove ? (target: TargetData) => void A function that is executed when the pointer moves over the chart.

Interfaces

TargetData

The click event data.

Field Type Description
location Array<number> The clicked point's coordinates [x, y] (relative to the chart's plot).
targets Array<SeriesRef> An array of clicked series.
event object The event data.

SeriesRef

The object that points at a clicked series.

Field Type Description
series string Series name.
point number The point's index within the data array.
This site uses cookies to make your browsing experience more convenient and personal. Cookies store useful information on your computer to help us improve the efficiency and relevance of our site for you. In some cases, they are essential to making the site work properly. By accessing this site, you consent to the use of cookies. For more information, refer to DevExpress’ privacy policy and cookie policy.