OptionalaccessibilityOptionalactiveOptionalactiveOptionalallowThis option allows the tooltip to extend beyond the viewBox of the chart itself.
OptionalanimationSpecifies the duration of animation, the unit of this option is ms.
OptionalanimationThe type of easing function.
OptionalaxisTooltip always attaches itself to the "Tooltip" axis. Which axis is it? Depends on the layout:
Tooltip will use the default axis for the layout, unless you specify an axisId.
OptionalcontentRenders the content of the tooltip.
This should return HTML elements, not SVG elements.
OptionalcontentThe style of tooltip content which is a dom element.
OptionalcoordinateOptionalcursorIf set false, no cursor will be drawn when tooltip is active. If set a object, the option is the configuration of cursor. If set a React element, the option is the custom react element of drawing cursor.
OptionaldefaultOptionalfilterWhen an item of the payload has value null or undefined, this item won't be displayed.
OptionalfitOptionalformatterFunction to customize the value in the tooltip. If you return an array, the first entry will be the formatted "value", and the second entry will be the formatted "name"
OptionalhideOptionalhideOptionalhideOptionalincludeIf true, the tooltip will display information about hidden series. Defaults to false. Interacting with the hide property of Area, Bar, Line, Scatter.
OptionalindicatorOptionalisIf set false, animation of tooltip will be disabled. If set "auto", the animation will be disabled in SSR and will respect the user's prefers-reduced-motion system preference for accessibility.
OptionalitemSorts tooltip items.
Defaults to 'name' which means it sorts alphabetically by graphical item name property.
OptionalitemThe style of default tooltip content item which is a li element.
OptionallabelOptionallabelOptionallabelThe formatter function of label in tooltip.
OptionallabelThe style of default tooltip label which is a p element.
OptionalnameOptionaloffsetThe offset size between the position of tooltip and the mouse cursor position. When a number is provided, the same offset is applied to both x and y axes.
When a Coordinate object is provided, you can specify different offsets for each axis (x and y as numbers)
OptionalpayloadOptionalpayloadOptionalportalIf portal is defined, then Tooltip will use this element as a target for rendering using React Portal: https://react.dev/reference/react-dom/createPortal
If this is undefined then Tooltip renders inside the recharts-wrapper element.
OptionalpositionIf this field is set, the tooltip will be displayed at the specified position regardless of the mouse position.
You can set a single field (x or y) and let the other field be calculated automatically based on the mouse position.
OptionalrenderOptionalreverseOptionalseparatorThe separator between name and value.
OptionalsharedDefines whether the tooltip is reacting to the current data point, or to all data points at the current axis coordinate.
true: tooltip will appear on top of all bars on an axis tick.false: tooltip will appear on individual bars.Different chart types allow different modes, and have different defaults.
OptionalshowOptionaltriggerIf hover then the Tooltip shows on mouse enter and hides on mouse leave.
If click then the Tooltip shows after clicking and stays active.
OptionaluseOptionalwrapperOptionalwrapperCSS styles to be applied to the wrapper div element.
If true, then Tooltip is always displayed, once an activeIndex is set by mouse over, or programmatically. If false, then Tooltip is never displayed. If undefined, Recharts will control when the Tooltip displays. This includes mouse and keyboard controls.