Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[charts] Place item tooltip thanks to achorEl instead of fake bounding box #20056

@alexfauquette

Description

@alexfauquette

Popper takes an anchorEl and we're calculating the coordinates to mimic the anchor element. When using computedAnchor === 'node', could we not use anchorEl directly instead of having to implement the anchoring logic ourselves?

Alternatively, would it make sense to use CSS anchoring instead? We'd need to detect its availability and fall back to Popper, unfortunately.

Originally posted by @bernardobelchior in #19954 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: chartsChanges related to the charts.type: enhancementIt’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions