You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Below you can read a feature request (given that this does not exist already).
The scenario
I am looking for a nice solution for displaying a hover "title" different from the ticks when using hovermode='x unified'.
Let's say that you want to display multiple time series and you have your range defined in 2 different ways. You have the timestamps, and the elapsed time. Now, you don't want to display both on the x axis to keep that clutter free, but you want to display them when hovering over the plot.
This will produce the following plot, and the problem is that I want to place "Hover 2" in place of "Day 2", while keeping "Day 2" on the x axis:
One solution
One solution I came up with was introducing a 2nd y axis, and placing the hover information there, hiding the axis and hiding the line. This works fine, however results in a hover display that looks "funny", essentially leaving some padding before the displayed text.
And this would result in the following (edited picture) plot:
The text was updated successfully, but these errors were encountered:
ambrustorok
changed the title
Display different ticktext for hover and axis
Display different ticktext for hover and axis when using hovermode='x unified'Jul 14, 2023
MarcoHuebner
added a commit
to MarcoHuebner/volatility_decay_app
that referenced
this issue
Dec 18, 2023
gvwilson
changed the title
Display different ticktext for hover and axis when using hovermode='x unified'
enable display of different ticktext for hover and axis when using hovermode='x unified'Aug 12, 2024
Hi,
Below you can read a feature request (given that this does not exist already).
The scenario
I am looking for a nice solution for displaying a hover "title" different from the ticks when using
hovermode='x unified'
.Let's say that you want to display multiple time series and you have your range defined in 2 different ways. You have the timestamps, and the elapsed time. Now, you don't want to display both on the x axis to keep that clutter free, but you want to display them when hovering over the plot.
The problem
Take this code for example:
This will produce the following plot, and the problem is that I want to place "Hover 2" in place of "Day 2", while keeping "Day 2" on the x axis:
One solution
One solution I came up with was introducing a 2nd y axis, and placing the hover information there, hiding the axis and hiding the line. This works fine, however results in a hover display that looks "funny", essentially leaving some padding before the displayed text.
Proposed solution
It would be so amazing if one could just have a
hoverticktext
arg in the layout, that would allow for another piece of text to be set.Imaginary example code with expected result:
And this would result in the following (edited picture) plot:
The text was updated successfully, but these errors were encountered: