Skip to content

PointerY falls back to nearest X/Y outside of frame #2439

Description

@mootari

When the cursor is moved outside of the frame area, PointerY will no longer match by closest Y, instead matching the closest point b X/Y distance.

This is problematic when hovering axis labels, as the tooltip may no longer line up with the axis label.

Example:

Plot.plot({
  height: 100,
  marks: [
    Plot.frame(),
    Plot.dot([1,2,1], {x: d => d, y: (d, i) => i, tip: {pointer: "y"}}),
  ],
})
2026-06-22.at.12.24.50.-.Blush.Wallaby.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn’t working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions