AdeelK93 / collapsibleTree

Create Interactive Collapsible Tree Diagrams in R using D3.js
https://adeelk93.github.io/collapsibleTree/
158 stars 41 forks source link

(1) Links/Shiny Input (2) Pan & Zoom #15

Closed RSchwinn closed 7 years ago

RSchwinn commented 7 years ago

Above all: Excellent work. I thank you for sharing your hard work.

(1) Links / Shiny Input Is it already possible to trigger a shiny input variable given clicks on a terminal node's text? I'd like for users to be able to search through a tree and then, after finding the entry that interests them, to have the ability to trigger events/content associated with that node.

(2) Pan & Zoom I want to second the other request for http://bl.ocks.org/robschmuecker/7880033 style panning and zooming. I think this will be a game changer.

AdeelK93 commented 7 years ago

1) Shiny input is definitely possible, you can see a live demo of it here, which works by adding an inputId parameter and then reading from that input name

2) Pan & zoom is a great idea and something I definitely want to incorporate, I'll try to work on that soon! Right now I'm thinking this will be an toggle between either the current responsive layout or pan & zoom

AdeelK93 commented 7 years ago

I've added some very basic pan+zoom functionality to the github version of the package (you can also check it out here, let me know what you think!

RSchwinn commented 7 years ago

I think you are a genius.

Thank you, I really appreciate this.