Component to override the tooltip content when triger is set to 'item'.
Type:
elementType
trigger
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
Type:
'axis' | 'item' | 'none'
Default:
'item'
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.
.MuiChartsTooltip-rootroot
Styles applied to the root element.
.MuiChartsTooltip-markCellmarkCell
Styles applied to the markCell element.
.MuiChartsTooltip-labelCelllabelCell
Styles applied to the labelCell element.
.MuiChartsTooltip-valueCellvalueCell
Styles applied to the valueCell element.
You can override the style of the component using one of these customization options:
Have any feedback about this new API display design?
We've heard from you and iterated on making the design of API content documentation more scalable and easier to parse! We value your input, so please don't hesitate to share any additional feedback you may have.