You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to make nodes in a diagram clickable with shinyjs? More specifically, I would like to be able to click on a node in a graph and yield a subgraph.
For the sake of simplicity, I have included a very basic example. The main diagram is denoted as "diagram2" and the subgraph as "subdiagram" in the server section. Ideally, I would like to click on the node A to result in the graph made up of the nodes (A, B, D). Furthermore, I hope that once node A is clicked, the output of the subgraph replaces the original graph displayed.
There is support for click events in Mermaid; see this discussion for an interactive example. Is it possible to use these ideas in Shiny? Seems like it could be manageable with shinyjs coupled with an onclick function, but I'm struggling to get it to work. Thanks~
The text was updated successfully, but these errors were encountered:
Is it possible to make nodes in a diagram clickable with shinyjs? More specifically, I would like to be able to click on a node in a graph and yield a subgraph.
For the sake of simplicity, I have included a very basic example. The main diagram is denoted as "diagram2" and the subgraph as "subdiagram" in the server section. Ideally, I would like to click on the node A to result in the graph made up of the nodes (A, B, D). Furthermore, I hope that once node A is clicked, the output of the subgraph replaces the original graph displayed.
There is support for click events in Mermaid; see this discussion for an interactive example. Is it possible to use these ideas in Shiny? Seems like it could be manageable with shinyjs coupled with an onclick function, but I'm struggling to get it to work. Thanks~
I am also interested in this. Have you found the solution?
Is it possible to make nodes in a diagram clickable with shinyjs? More specifically, I would like to be able to click on a node in a graph and yield a subgraph.
For the sake of simplicity, I have included a very basic example. The main diagram is denoted as "diagram2" and the subgraph as "subdiagram" in the server section. Ideally, I would like to click on the node A to result in the graph made up of the nodes (A, B, D). Furthermore, I hope that once node A is clicked, the output of the subgraph replaces the original graph displayed.
There is support for click events in Mermaid; see this discussion for an interactive example. Is it possible to use these ideas in Shiny? Seems like it could be manageable with shinyjs coupled with an onclick function, but I'm struggling to get it to work. Thanks~
The text was updated successfully, but these errors were encountered: