Skip to content

Tooltips sometimes appear invisible when using browser zoom #103

@DavidC-75

Description

@DavidC-75

Describe the bug
When using the browser zoom (tried Edge and Chrome), tooltips sometimes appear invisible because they are offset relative to the mouse pointer and are out of the visible region.

To Reproduce
Navigate to https://vasturiano.github.io/sunburst-chart/example/flare/ and set your bowser zoom to max (500%)
Then hover over some of the small terminal leaves (don't click on the parent to 'zoom' on that part of the chart !)

Expected behavior
It would be nice to be able to see the tooltips regardless of the browser zoom settings (and currently the tooltips also appear magnified - they could possibly remain at the original size)

Additional context
This might not be a bug at all, just the way browsers render the SVG.... But I have no detailed understanding of that.
To work around the issue, I was hoping to use d3-zoomable so the browser zoom is not used but a native d3 zoom is used instead. Alas I'm a total beginner and couldn't figure out how to integrate d3-zoomable in https://github.com/vasturiano/sunburst-chart/blob/master/example/flare/index.html. Any suggestions ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions