AdeelK93 / collapsibleTree

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

Feature request: Multiple attributes in tooltip #9

Closed acom182 closed 6 years ago

acom182 commented 7 years ago

I'm trying to figure out if it is possible to add additional attributes to the tooltip, pulling from additional columns in the data. Any advice on how to do this?

Just adding to this - wondering if it is possible to implement pan and zoom functionality as well, similar to that shown here or here (easier version). I can't seem to get either working unfortunately.

AdeelK93 commented 7 years ago

Have you tried pasteing the columns together, and feeding that column into the tooltip?

Panning and zooming is a great idea, if I have some free time I'll try to look into implementing that!

acom182 commented 7 years ago

Paste works, but wanted to see if it is possible to directly reference multiple columns in the same format as the current tooltip - i.e. with "columnname: datapoint."

Looking forward to seeing the pan and zoom. I tried a few different things with the JS file in your package but couldn't get it working unfortunately - I'm a bit too novice for these things.

Thanks for the reply!

AdeelK93 commented 7 years ago

Hi @acom182 , sorry for not getting back to you sooner, but 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!

acom182 commented 6 years ago

Thanks @AdeelK93 this is great! Appreciate the update, it works exactly as I hoped. Great work!