Skip to content

Change in "hoverclosest" and "hovercompare" #1970

@apalacio10

Description

@apalacio10

Hello,

This is not a bug. There is a major change in the developer version from the current version. I think this implies an important change to already implemented graphics.

The "hoverclosest" and "hovercompare" functions are not activated by default, it is necessary to activate them.

`Animals <- c("giraffes", "orangutans", "monkeys")
SF_Zoo <- c(20, 14, 23)
LA_Zoo <- c(12, 18, 29)
data <- data.frame(Animals, SF_Zoo, LA_Zoo)

fig <- plot_ly(data, x = ~Animals, y = ~SF_Zoo, type = 'bar', name = 'SF Zoo')
fig <- fig %>% add_trace(y = ~LA_Zoo, name = 'LA Zoo')
fig <- fig %>% layout(yaxis = list(title = 'Count'), barmode = 'group',
modebar =list(add=c("hoverclosest","hovercompare")))

fig
`

Activity

added a commit that references this issue on Jul 14, 2021
079ac68
added a commit that references this issue on Jul 4, 2022
55f49ee
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @apalacio10

        Issue actions

          Change in "hoverclosest" and "hovercompare" · Issue #1970 · plotly/plotly.R