This repository was archived by the owner on Nov 2, 2023. It is now read-only.
This repository was 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
Description
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!
Metadata
Metadata
Assignees
Labels
No labels