plot icon indicating copy to clipboard operation
plot copied to clipboard

Restrict pointer to chart area

Open mootari opened this issue 2 years ago • 1 comments

The pointer also responds to mouse movement outside the frame area. This can be disruptive when hovering over axis labels, especially when these labels have links.

Please consider adding an option to constrain pointers to a plot's frames.

https://github.com/observablehq/plot/assets/322014/f5d8838d-7f42-408c-9aaf-b0e8474b9386

mootari avatar Aug 03 '23 09:08 mootari

Another side effect of this is that selecting text in an axis label will pin the tooltip:

https://github.com/observablehq/plot/assets/322014/24534f16-7915-4018-aa8f-cff197dcd028

mootari avatar Sep 15 '23 17:09 mootari