plotly / plotly/plotly.js

Hover events on the lines themselves

Open
#1,960 7 comments 9 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

A dash community user brought this up https://community.plot.ly/t/linking-scattermapbox-lines-to-other-data-with-callbacks/5449

They would like some type of event be fired when hovering over lines instead of just points:

I would also like to raise an appeal for maps of lines being treated as actual lines rather than collections of points. It seems like the callbacks are only firing above the component points, rather than over the line itself, which is confusing to an end user.

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

Start by tracing scattermapbox hover handling and its callback event path; the issue does not identify specific files or tests. Compare the existing point-hover behavior with the requested line-hover behavior, and consider the work complete when hovering a line can fire an event rather than only hovering its component points.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.