Skip to content
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

Hover effect not behaving as expected on spaghetti plots since ggiraph 0.8.9 #298

Open
acossa opened this issue Jun 13, 2024 · 0 comments
Open

Comments

@acossa
Copy link

acossa commented Jun 13, 2024

ggchick <- ggplot(ChickWeight, aes(y = weight, 
                                x = Time, 
                                color = factor(Diet),
                                data_id = Chick)) +
    geom_point_interactive(hover_nearest = TRUE) +
    geom_line_interactive(aes(group = Chick))

girafe(ggobj = ggchick,
       options = list(
           opts_hover_inv(css = "opacity:0.2;"),
           opts_hover(css = "stroke-width:1.5;")
       ))

R version 4.3.1 (2023-06-16)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 22.04.4 LTS
ggiraph_0.8.10

ggplot2_3.5.1

Thanks for your great package!
However, I have noticed an unexpected behavior with this code of a spaghetti plot where the hover effect does not highlight the right points and lines.
This issue seems to have appeared with the version 0.8.9 update of ggiraph and is still present in version 0.8.10.

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

No branches or pull requests

1 participant