Skip to content

Disable tooltip from showing the closest node in ScatterPlot Canvas #2793

@AnselmeDor

Description

@AnselmeDor

Hi,

This issue is related to discussion #1920

I’d love to have the tooltip show up only when hovering directly over a node, and not when the cursor is on blank space. Right now, ResponsiveScatterPlotCanvas seems to rely on a Voronoi mesh that always highlights the nearest node, even if the cursor isn’t over any data point.

What I’ve tried:

  • Setting useMesh={false} → unfortunately didn’t change the behavior.
  • Using custom tooltips → still ends up triggering on the nearest node.
  • Switching to the SVG version → not really an option in my case, as I’m working with a large dataset. With SVG the chart freezes for several seconds when combined with custom pagination, which makes it hard to use in production.

Canvas is a great fit performance-wise for my use case, so it would be really helpful to have finer control over when tooltips appear.

Tooltip should only show when the cursor is directly over a node. Ideally, there could be an option to disable the Voronoi-based “closest node” detection in the Canvas version.

Thanks for the work on nivo! It’s been great to use so far, and this small tweak would make the Canvas scatterplot even more flexible!

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