plotly / plotly/plotly.js

Hover text not working with table

Open
#5,523 5 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

This may be an issue with code or with documentation, but hover text doesn't work with a table if you follow the documentation

hoverinfo
Parent: data[type=table]
Type: flaglist string. Any combination of "x", "y", "z", "text", "name" joined with a "+" OR "all" or "none" or "skip".
Examples: "x", "y", "x+y", "x+y+z", "all"
Default: "all"
Determines which trace information appear on hover. If none or skip are set, no information is displayed upon hovering. But, if none is set, click and hover events are still fired.

This example in codepen is based on my understanding of the above documentation but if you move the mouse over the cell, nothing pops up.

Where is a fix required:

  • in plotly.js table implementation
  • in the documentation
  • in my example?

In any case if the error is with my example, other users in plotly forums and in stackoverflow have a similar issue.

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 with the linked table reference documentation and CodePen reproduction, then compare the documented hoverinfo behavior with what occurs when hovering a table cell. Done means determining whether the example, documentation, or table implementation is responsible and verifying the resulting behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization
Issue type
Bug
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.