Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

Hover doesn't work when x and y is flipped #237

Open
mwijaya3 opened this issue Jan 13, 2019 · 5 comments
Open

Hover doesn't work when x and y is flipped #237

mwijaya3 opened this issue Jan 13, 2019 · 5 comments

Comments

@mwijaya3
Copy link

mwijaya3 commented Jan 13, 2019

Hi,

Thanks for the awesome package. The hover doesn't work when I flip the x and y variable.

For this example, the hover works and I can see 3 value showed up (variable, value, color):

diamonds <- ggplot2::diamonds %>% top_n(n = 10)
figure() %>%
  ly_bar(x = cut, y = carat, color = color,
         data = diamonds, position="dodge", hover=TRUE) %>%
         x_axis(label = "Cut") %>%
         y_axis(label = "Carat")

However, when I flipped the x and y-axis, the hover doesn't work anymore. See example below:

diamonds <- ggplot2::diamonds %>% top_n(n = 10)
figure() %>%
  ly_bar(y = cut, x = carat, color = color,
         data = diamonds, position="dodge", hover=TRUE) %>%
         x_axis(label = "Carat") %>%
         y_axis(label = "Cut")

I tried using the version via devtools and from CRAN. Both have same output.

Thanks!

@bryevdv
Copy link
Member

bryevdv commented Jan 13, 2019

@mwijaya3 We cannot investigate a problem we cannot reproduce. If you cannot share work data, you should create a minimal example with fake data. Otherwise, this issue will be closed with norepro resolution.

@mwijaya3
Copy link
Author

mwijaya3 commented Jan 14, 2019

@bryevdv good point. I will create an example with fake data and update my question. Thanks!

@mwijaya3
Copy link
Author

updated the question with an example.

@bryevdv
Copy link
Member

bryevdv commented Jan 15, 2019

@mwijaya3 thanks, though I should now say that when I was replying on my phone I missed that this was in the RBokeh repo, not the main one. RBokeh is maintained by @hafen so we will have to wait for him to chime in (I don't know anything about R). It's possible that this issue will be fixed when he releases a newer version of RBokeh based on current core Bokeh.

@mwijaya3
Copy link
Author

@bryevdv, thanks for the clarification. I will wait for @hafen to get back.

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

No branches or pull requests

2 participants