Tooltip API
Demos
For examples and details on the usage of this React component, visit the component demo pages:
Import
import { Tooltip } from '@mui/x-charts';Component name
The nameMuiTooltip can be used when providing default props or style overrides in the theme.Props
| Name | Type | Default | Description |
|---|---|---|---|
| axisContent | elementType | Component to override the tooltip content when triger is set to 'axis'. | |
| itemContent | elementType | Component to override the tooltip content when triger is set to 'item'. | |
| trigger | 'axis' | 'item' | 'none' | 'item' | Select the kind of tooltip to display - 'item': Shows data about the item below the mouse. - 'axis': Shows values associated with the hovered x value - 'none': Does not display tooltip |
The component cannot hold a ref.