Skip to content

hoverlabel not working properly with subplots when resizing window #4971

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mbkupfer opened this issue Jun 29, 2020 · 10 comments · Fixed by #4977
Closed

hoverlabel not working properly with subplots when resizing window #4971

mbkupfer opened this issue Jun 29, 2020 · 10 comments · Fixed by #4977
Assignees
Labels
bug something broken regression this used to work

Comments

@mbkupfer
Copy link

There is something buggy going on with my subplots using x unified

When creating the plot on its own, the hoverlabel is fine, but when I put it inside a dash app via dcc.Graph component, the labels don’t show. I created two versions in chart studio, one that is exported from the dash app and the second created using the chart_studio module.

The latter works fine, but the former works initially, but then all but the last plot’s hover labels no longer work when the window is resized.

Any idea what is going on here?

Created using dash app via dcc.Graph: https://chart-studio.plotly.com/~mbkupfer/72/#/

Created using chart_studio (works good): https://chart-studio.plotly.com/~mbkupfer/70/#plot

Dependencies:

dash                      1.13.3
dash-core-components      1.10.1
dash-html-components      1.0.3
dash-renderer             1.5.0
dash-table                4.8.1
plotly                    4.8.2

[Update]
It actually looks like this issue occurs in both created plots.

@nicolaskruchten nicolaskruchten transferred this issue from plotly/plotly.py Jun 30, 2020
@nicolaskruchten
Copy link
Contributor

@archmoj @antoinerg can you take a look at this plz?

@nicolaskruchten nicolaskruchten added the bug something broken label Jun 30, 2020
@nicolaskruchten nicolaskruchten added this to the v1.55.0 milestone Jun 30, 2020
@archmoj
Copy link
Contributor

archmoj commented Jun 30, 2020

@mbkupfer do you think it is a regression?

@archmoj
Copy link
Contributor

archmoj commented Jun 30, 2020

[Update]
It actually looks like this issue occurs in both created plots.

Looks like the expected behaviour to me.
Should we remove the bug tag and add a feature request tag?

@mbkupfer
Copy link
Author

do you think it is a regression?

@archmoj couldn't say, this is my first time using this feature

Looks like the expected behaviour to me.

For the hover data to not show?

FWIW, this issue only comes up when I used shared_xaxes. I have been able to get a workaround by not using shared and making the other axes invisible.

@archmoj
Copy link
Contributor

archmoj commented Jun 30, 2020

Looks like the expected behaviour to me.

For the hover data to not show?

For the hover not to show across subplots.

FWIW, this issue only comes up when I used shared_xaxes. I have been able to get a workaround by not using shared and making the other axes invisible.

Am curious to see how the results look like.

@mbkupfer
Copy link
Author

mbkupfer commented Jun 30, 2020

Looks like the expected behaviour to me.

For the hover data to not show?

For the hover not to show across subplots.

Oh, no...what I meant was that it simply didn't show. For example, in first screenshot, I get a unified hoverlabel on the first plot, but when I resize the window it no longer shows...all I get are the spikelines. The only subplot that shows hoverlabels at this point is the last one.

image

image

@archmoj
Copy link
Contributor

archmoj commented Jun 30, 2020

@mbkupfer now could you please modify the issue title to better reflect the problem you observed?
Thanks in advance,

@mbkupfer mbkupfer changed the title unified hoverlabel not working with subplots unified hoverlabel not working properly with subplots when resizing window Jun 30, 2020
@archmoj
Copy link
Contributor

archmoj commented Jun 30, 2020

Here is a codepen to help illustrate the problem.
Not only unified hover but also other modes have this problem.

@archmoj archmoj changed the title unified hoverlabel not working properly with subplots when resizing window hoverlabel not working properly with subplots when resizing window Jun 30, 2020
@archmoj
Copy link
Contributor

archmoj commented Jun 30, 2020

And this is a regression since v1.54.2.

@archmoj archmoj added the regression this used to work label Jun 30, 2020
@archmoj archmoj self-assigned this Jun 30, 2020
@archmoj
Copy link
Contributor

archmoj commented Jun 30, 2020

Side effect of #4832

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken regression this used to work
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants