AdeelK93 / collapsibleTree

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

'root' argument appears to be missing. #18

Closed RSchwinn closed 6 years ago

RSchwinn commented 6 years ago

One thing: (1) Running a collapsibleTree seems to interfere with networkD3's simpleNetwork but not vice versa. Specifically the simple network nodes become white. Thank you for your efforts!

PS: The issue is my data. Essentially, I have a data.tree object whose root I cannot rename. I tested with your data before posting but I must have mistyped something because it works now. Sorry.

AdeelK93 commented 6 years ago

1) What do you mean? For which function are is the root argument not working? You should be able to use it like:

collapsibleTree(warpbreaks, c("wool", "tension", "breaks"), root = "custom root name")

2) That's probably a css issue, I'll have to try out networkD3's simpleNetwork to see what's up with that, but it's most likely this part of my css not being namespaced properly

.node circle {
  fill: #fff;
  stroke: #000;
}
AdeelK93 commented 6 years ago

Fixed the css namespacing issue in the github version, collapsibleTree and simpleNetwork should now play better together!