x hover label hidden when using `hoversubplots='axis'` and `hovermode='x'`
@emilykl is already working on this.
Since Oct 2, 2024.
- Dominant language
- JavaScript
- Stars
- 18.3k
- Forks
- 2k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 28
Description
Hi,
When the hovermode is set to 'x' and the hoversubplots='axis' option is used, the x label can be hidden by the labels of other subplots. This issue can also be found in the plotly python documentation, as shown below:
In this CodePen, the problem arise when hovering the first point of the first subplot or the last point on the middle subplot.
I believe it would make more sense to stick the x label at the bottom subplot, regardless of which subplot is hovered over, especially when the spike line is enabled. I implemented this, and here is what it looks like in my use case:
Please let me know what you think.
Thanks!
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.
Assessment
This issue has not been assessed yet.