Skip to content

DefaultChartsItemTooltipContent API

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

Component demos

Import

import { DefaultChartsItemTooltipContent } from '@mui/x-charts/ChartsTooltip';
// or
import { DefaultChartsItemTooltipContent } from '@mui/x-charts';
Learn about the difference by reading this guide on minimizing bundle size.

Props

classesRequired

Override or extend the styles applied to the component.

See CSS API below for more details.

Type:object


itemDataRequired

The data used to identify the triggered item.

Type:{ dataIndex?: number, seriesId: string, type: 'bar'
| 'line'
| 'pie'
| 'scatter' }


seriesRequired

The series linked to the triggered axis.

Type:{ color?: string, data: Array<number>, highlightScope?: { faded?: 'global'
| 'none'
| 'series', highlighted?: 'item'
| 'none'
| 'series' }, id: string, type: 'bar'
| 'line'
| 'pie'
| 'scatter', valueFormatter: func }


The component cannot hold a ref.

CSS

The following class names are useful for styling with CSS (the state classes are marked).
To learn more, visit the component customization page.

.MuiDefaultChartsItemTooltipContent-root

Styles applied to the root element.

Rule name:root


.MuiDefaultChartsItemTooltipContent-table

Styles applied to the table element.

Rule name:table


.MuiDefaultChartsItemTooltipContent-row

Styles applied to the row element.

Rule name:row


.MuiDefaultChartsItemTooltipContent-cell

Styles applied to the cell element.

Rule name:cell


.MuiDefaultChartsItemTooltipContent-mark

Styles applied to the mark element.

Rule name:mark


.MuiDefaultChartsItemTooltipContent-markCell

Styles applied to the markCell element.

Rule name:markCell


.MuiDefaultChartsItemTooltipContent-labelCell

Styles applied to the labelCell element.

Rule name:labelCell


.MuiDefaultChartsItemTooltipContent-valueCell

Styles applied to the valueCell element.

Rule name:valueCell



You can override the style of the component using one of these customization options: