Skip to content

ChartsVoronoiHandler API

API reference docs for the React ChartsVoronoiHandler component. Learn about the props, CSS, and other APIs of this exported module.

Demos

Import

import { ChartsVoronoiHandler } from '@mui/x-charts/ChartsVoronoiHandler';
// or
import { ChartsVoronoiHandler } from '@mui/x-charts';

Learn about the difference by reading this guide on minimizing bundle size.

Props

NameTypeDescription
onItemClickfunc

Callback fired when clicking on a scatter item.

Signature:function(event: MouseEvent, scatterItemIdentifier: ScatterItemIdentifier) => void
  • event Mouse event caught at the svg level
  • scatterItemIdentifier Identify which item got clicked
voronoiMaxRadiusnumber

Defines the maximal distance between a scatter point and the pointer that triggers the interaction. If undefined, the radius is assumed to be infinite.

The component cannot hold a ref.