Skip to content

Hovering line excluded from tooltip triggers hover for other lines #256

Open
@olsonjb

Description

@olsonjb

Provide a general summary of the issue here

Hovering a line that is excluded from the tooltip via excludeDataKeys will trigger hover on the nearest non-excluded line. This issue was surfaced by @c-lamoureux in this thread

🤔 Expected Behavior?

Do not trigger hover from disabled line

😯 Current Behavior

disabledLineHover.mov

💁 Possible Solution

Reason for the bug:

To disable the tooltip interaction, the disabled line is excluded from the voronoi calculation
image

If the disabled line was still included in the voronoi calculation, we could end up with weird "dead" areas. None of the areas around the gray line below would trigger a hover - this could be problematic if lines or points overlap.
image

There may not be a good solution for this - just documenting the issue around Connor's comment in case we decide to investigate it more thoroughly in the future.

🔦 Context

No response

🖥️ Steps to Reproduce

Hover the disabled line in the rsc-charttooltip--disabled-series-line-chart story.

Version

1.6.0

What browsers are you seeing the problem on?

Chrome

If other, please specify.

No response

What operating system are you using?

MacOS

🧢 Your Company/Team

None

🕷 Tracking Issue

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds groomingIssue is pending grooming by the core team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions