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.

Component 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

NameTypeDefaultDescription
onItemClickfunc-

Callback fired when clicking on a scatter item.

Signature:function(event: MouseEvent, scatterItemIdentifier: ScatterItemIdentifier) => void
  • event Mouse event catched at the svg level
  • scatterItemIdentifier Identify whihc 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.