plotly / plotly/plotly.js

Spike line on the wrong subplot on multi-subplot Fx.hover calls

Open
#3,219 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
JavaScript
Stars
18.3k
Forks
2k
Avg merge
2d 12h
Merged PRs (30d)
28

Description

Deploy #301 on subplots can display all the point info when hover on any subplot. But if the trace data of two subplots are close, the spike line may be in the wrong subplot.

https://codepen.io/anon/pen/vQOrMj
Put cursor on (19, 119) point of trace0, the spike line of yaxis is in the trace1 plot.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue using the linked CodePen, hovering the point at (19, 119) on trace0 in the multi-subplot example. Trace the hover and spike-line behavior for the two subplots, then verify that the spike line remains in the subplot containing the hovered trace without breaking the displayed point information.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
62/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.