Skip to content

off event for highlighting not firing for 3d marker/scatter3d #1413

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

Open
brooksambrose opened this issue Nov 19, 2018 · 0 comments
Open

off event for highlighting not firing for 3d marker/scatter3d #1413

brooksambrose opened this issue Nov 19, 2018 · 0 comments

Comments

@brooksambrose
Copy link

brooksambrose commented Nov 19, 2018

I have not found a way to deselect highlighted markers in 3d. No off events appear to work when z coordinates are specified with add_markers.

library(plotly)
    d<-data.frame(x=rnorm(10),y=rnorm(10),z=rnorm(10),grp=sample(1:2,10,T),clr=rnorm(10)) %>% highlight_key(~grp)
    # off event fires as expected
    plot_ly(d) %>%
        add_markers(x=~x,y=~y,text=~grp,hoverinfo='text',color=~clr) %>%
        highlight(on='plotly_click',off='plotly_doubleclick')

off

    # no off event fires
    plot_ly(d) %>%
        add_markers(x=~x,y=~y,z=~z,text=~grp,hoverinfo='text',color=~clr) %>%
        highlight(on='plotly_click',off='plotly_doubleclick')

noff

Looping gif makes it look like it's deselecting, but it's not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants