Skip to content

update documentation about hover modes in buttons #5892

@zyzhu

Description

@zyzhu

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

Activity

archmoj

archmoj commented on Aug 16, 2021

@archmoj
Contributor

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.

zyzhu

zyzhu commented on Aug 16, 2021

@zyzhu
Author

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.

self-assigned this
on Jun 25, 2024
removed their assignment
on Aug 2, 2024
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[/+] on Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3backlogfeaturesomething new

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @gvwilson@zyzhu@LiamConnors@archmoj

        Issue actions

          update documentation about hover modes in buttons · Issue #5892 · plotly/plotly.js