Skip to content

Linked hover across plots - #12

Closed
jmdowrick wants to merge 1 commit into
opencor:mainfrom
jmdowrick:hover
Closed

jmdowrick wants to merge 1 commit into
opencor:mainfrom
jmdowrick:hover

Conversation

@jmdowrick

Copy link
Copy Markdown

Adds a hovered event ({ x }, or null when the hover ends) and a hoverAt(x) method, so that an app can link the hover of plots that share an X axis, in the same way as marginsUpdated/margins.

A plot driven by hoverAt() shows the guide line and the hovered points of its sorted-X traces. Phase-plot traces are skipped, since they need a Y value. Only the plot under the mouse pointer shows a tooltip, and the mouse pointer takes precedence. hoverAt() doesn't emit hovered, so linked plots don't echo each other.

Demo: a "Link hover" checkbox.

Fixes #2

…ent and a hoverAt() method.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@agarny

agarny commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Sorry @jmdowrick, but I am closing this. I don't mind AI-generated issues, but when it comes to PRs, I prefer to do it myself (with or without the help of AI). This allows me to control exactly what is done, rather than review something that might, or not, require further improvements.

@agarny agarny closed this Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Linked hover across plots

2 participants