ChartsOnAxisClickHandler API
API reference docs for the React ChartsOnAxisClickHandler component. Learn about the props, CSS, and other APIs of this exported module.
Component demos
Import
import { ChartsOnAxisClickHandler } from '@mui/x-charts/ChartsOnAxisClickHandler';
// or
import { ChartsOnAxisClickHandler } from '@mui/x-charts';| Name | Type | Default | Description | 
|---|---|---|---|
| onAxisClick | func | The function called for onClick events. The second argument contains information about all line/bar elements at the current mouse position. Signature: function(event: MouseEvent, data: null | AxisData) => void
 | 
The component cannot hold a ref.