Skip to content
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

update documentation about hover modes in buttons #5892

Open
zyzhu opened this issue Aug 15, 2021 · 2 comments
Open

update documentation about hover modes in buttons #5892

zyzhu opened this issue Aug 15, 2021 · 2 comments
Labels
feature something new P3 backlog

Comments

@zyzhu
Copy link

zyzhu commented Aug 15, 2021

Buttons to choose 'hover to closest' and 'hover to compare' disappear in versions from 2.0.0 to 2.3.1. See repo here https://codepen.io/zyzhu/pen/BaREOVg

image

Buttons are there in 1.58.4
image

If I change version to plotly-latest.min.js. The buttons show up.
image

@archmoj
Copy link
Contributor

archmoj commented Aug 16, 2021

You could use v1hovermode or hovercompare, hoverclosest, togglehover and togglespikelines in config similar to this codepen. Please see #5654 for more info.

In addition you could use layout.modebar.add. Please see #5660.

@archmoj archmoj closed this as completed Aug 16, 2021
@zyzhu
Copy link
Author

zyzhu commented Aug 16, 2021

Thanks for pointing that out. I didn't find v1hovermode, hovercompare, hoverclosest in the documentation here https://plotly.com/javascript/configuration-options/#remove-modebar-buttons. Adding togglehover only does not work. Maybe the documentation shall be updated.

@archmoj archmoj reopened this Aug 16, 2021
@gvwilson gvwilson self-assigned this Jun 25, 2024
@gvwilson gvwilson removed their assignment Aug 2, 2024
@gvwilson gvwilson changed the title Buttons to choose 'hover to closest' and 'hover to compare' disappear since version 2.0 update documentation about hover modes in buttons Aug 9, 2024
@gvwilson gvwilson added feature something new P3 backlog labels Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature something new P3 backlog
Projects
None yet
Development

No branches or pull requests

4 participants