Plotly waterfall with offset base: hovertext activated on hover at wrong position
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 18.3k
- Forks
- 2k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 28
Description
Recently, when using an offset (a non-zero base parameter) in a waterfall plot in plotly, I noticed that the boxes with hoverinfo were activated when the mouse pointer was in a completely wrong/unexpected place. I've submitted a question about this on StackOverflow, but realized it's quite likely that this is a bug, so I'm posting it here as well. Here's a link to my original post on SO, with a reproducible example: https://stackoverflow.com/q/71655326/3381005. I observed this behavior in the R version of Plotly, but I don't think it's R-specific, as I saw a similar post from a Python Dash Plotly user (sadly unanswered) here.
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 waterfall example in the linked Stack Overflow post and compare it with the related Plotly community report. Trace the waterfall hover behavior for a non-zero base; done means hovertext activates where the pointer is over the corresponding box, with a regression test covering the offset case.
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