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.