rufuspollock-okfn / bubbletree

Radial Bubble Tree Visualization
http://okfnlabs.org/bubbletree
152 stars 69 forks source link

Bubble tree with single child does not populate . #30

Open vikasbadola opened 10 years ago

vikasbadola commented 10 years ago

Hi , i have a bubble tree with numbers of data from my database , now when i tested it i just noticed that a node with single child is not populating . Can anyone help me ? how can i populate a node with single child on its click .

ElliotTheRobot commented 5 years ago

Found the problem in bubbletree.js:

line 1146: if (node.children.length < 2) { // ..because if it has no children.. change to: if (node.children.length < 1) { // ..because if it has no children..