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

Integrate crosstalk without shiny #47

Open
g-pires opened this issue Aug 21, 2024 · 3 comments
Open

Integrate crosstalk without shiny #47

g-pires opened this issue Aug 21, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@g-pires
Copy link

g-pires commented Aug 21, 2024

Hi,

Is there a way to integrate the upsets and venns with crosstalk without using shiny ?
But rather using a classic Rmd like does plotly for example.

Thanks !

@g-pires g-pires added the enhancement New feature or request label Aug 21, 2024
@sgratzl
Copy link
Member

sgratzl commented Aug 24, 2024

can you provide a plot.ly example to understand what you mean?

@g-pires
Copy link
Author

g-pires commented Aug 28, 2024

Hi,

Of course, here is a reproducible example :

df <- data.frame(x = letters[1:20], y = runif(20))

shared_df <- crosstalk::SharedData$new(df)

f <- crosstalk::filter_select("id", "Select an x", shared_df, ~x)

p <- plotly::plot_ly(data = shared_df, 
                              x = ~x, 
                              y = ~y, 
                              type = "scatter", 
                              mode = "markers")

t <- reactable::reactable(shared_df)

crosstalk::bscols(f, p, t)

In this simple example, one can update the table AND the plot at the same time using the filter_select from crosstalk without using any shiny

@sgratzl
Copy link
Member

sgratzl commented Sep 8, 2024

so far filtered data is not supported via crosstalk since it would require to recompute the intersections.

the following crosstalk handler is registered:

mode: 'click' | 'hover' | 'contextMenu';

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

No branches or pull requests

2 participants