Skip to content

Better tooltip position handling #5115

Description

@tobiaslins

Do you want to request a feature or report a bug?

We want our tooltips to overflow the chart itself so we're using allowEscapeViewBox.

But then - the tooltip also overflow out of the window viewport.
image

What is the current behavior?

The tooltip goes out of window viewport so it gets hidden

What is the expected behavior?

Make it possible so the tooltip stays in the viewport

Which versions of Recharts, and which browser / OS are affected by this issue? Did this work in previous versions of Recharts?

2.13.0-alpha.4

PS: Thank you for working on recharts 🙏

Metadata

Metadata

Assignees

No one assigned

    Labels

    TooltipIssues that deal with the Tooltip content, its behaviour, and bugs.enhancementEnhancement to a current APIfeature requestIssues that are feature requests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions