trace shown in hoverinfo despite using hoverinfo='skip'
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 2.7k
- Forks
- 641
- PR merge metrics
- No merged PRs in 30d
Description
Coming from here.
After updating from R plotly 4.9.4.1 to 4.10.0 (and therefore updating underlying plotly.js library from v1.57.1 to v2.5.1 as mentioned in the NEWS) using hoverinfo='skip' along with hovermode = 'y unified' still shows a trace - only the trace name is hidden:
library(plotly)
fig <- plot_ly()
fig <- fig %>% add_trace(x = ~2:4, y = ~4:6, name = "yaxis data", mode = "lines+markers", type = "scatter")
fig <- fig %>% add_trace(x = ~4:6, y = ~4:6, name = "yaxis 2 data", mode = "lines+markers", type = "scatter")
fig <- fig %>% add_trace(x = ~6:8, y = ~4:6, name = "omit_hoverinfo", mode = "lines+markers", type = "scatter", hoverinfo='skip')
fig <- fig %>% layout(
hovermode = 'y unified'
)
fig

Result using R plotly 4.9.4.1:

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the supplied R example with hoverinfo='skip' and hovermode='y unified', comparing R plotly 4.9.4.1 and 4.10.0. Then inspect the underlying plotly.js hover handling; done when the skipped trace no longer appears in unified hover output while the other traces remain visible.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, r
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100