The EventTracker
plugin allows you to handle a click on the chart's plot.
Use the following statement to import the plugin:
import { EventTracker } from '@devexpress/dx-react-chart';
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. |
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. |
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. |