DefaultChartsAxisTooltipContent API
API reference docs for the React DefaultChartsAxisTooltipContent component. Learn about the props, CSS, and other APIs of this exported module.
Component demos
Import
import { DefaultChartsAxisTooltipContent } from '@mui/x-charts/ChartsTooltip';
// or
import { DefaultChartsAxisTooltipContent } from '@mui/x-charts';
The properties of the triggered axis.
Type:{ axisId?: string, classes?: object, data?: array, dataKey?: string, disableLine?: bool, disableTicks?: bool, fill?: string, hideTooltip?: bool, id: string, label?: string, labelFontSize?: number, labelStyle?: object, max?: Date
| number, min?: Date
| number, position?: 'bottom'
| 'left'
| 'right'
| 'top', scale: func, scaleType: 'time', slotProps?: object, slots?: object, stroke?: string, tickFontSize?: number, tickInterval?: 'auto'
| array
| func, tickLabelInterval?: 'auto'
| func, tickLabelStyle?: object, tickMaxStep?: number, tickMinStep?: number, tickNumber: number, tickSize?: number, valueFormatter?: func }
Data identifying the triggered axis.
Type:{ x?: { index?: number, value: Date
| number }, y?: { index?: number, value: Date
| number } }
Override or extend the styles applied to the component.
See CSS API below for more details.
Type:object
The series linked to the triggered axis.
Type:Array<{ area?: bool, color: string, connectNulls?: bool, curve?: 'catmullRom'
| 'linear'
| 'monotoneX'
| 'monotoneY'
| 'natural'
| 'step'
| 'stepAfter'
| 'stepBefore', data: Array<number>, dataKey?: string, disableHighlight?: bool, highlightScope?: { faded?: 'global'
| 'none'
| 'series', highlighted?: 'item'
| 'none'
| 'series' }, id: string, label?: string, showMark?: func
| bool, stack?: string, stackOffset?: 'diverging'
| 'expand'
| 'none'
| 'silhouette'
| 'wiggle', stackOrder?: 'appearance'
| 'ascending'
| 'descending'
| 'insideOut'
| 'none'
| 'reverse', type: 'line', valueFormatter: func, xAxisKey?: string, yAxisKey?: string }>
The following class names are useful for styling with CSS (the state classes are marked).
To learn more, visit the component customization page.
Styles applied to the markCell element.
Rule name:markCell
Styles applied to the labelCell element.
Rule name:labelCell
You can override the style of the component using one of these customization options:
- With a global class name.
- With a rule name as part of the component's
styleOverrides
property in a custom theme.