plotly / plotly/plotly.js

show tooltip when hovering over selected points on scatter plot

Open
#7,399 3 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Hello,

I’ve encountered an issue when using Plotly’s scatter plot. When I select specific points on the scatter graph and then try to hover over those selected points, the tooltip fails to appear. This behavior is inconsistent with how tooltips normally function on the plot, where they display the relevant data for each point when hovered over.

Steps to reproduce:

  1. Create a scatter plot with multiple data points.
  2. Select one or more points on the graph.
  3. Hover over the selected points.
  4. Notice that the tooltip does not appear for the selected points.

you can find an example in Plotly's documentation :

https://plotly.com/javascript/line-and-scatter/

Image

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 reproducing the behavior using the Plotly JavaScript line-and-scatter example linked in the issue: select points, then hover over them. Trace the scatter plot selection and hover behavior, and consider the issue complete when selected points show the same relevant tooltip data as unselected points.

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
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.