javascript - Implementing d3-2way-tree for multilevel tree -


i referring d3 widget, d3 2 way tree . want tree grown further more both @ top , bottom, not able form json data it.

in following json, added 2 nodes parents , 2 nodes children :

{     "name": "airlines",     "parents": [         {             "name": "aviation",             "isparent": true         },         {             "name": "transparent_companies",             "isparent": true         },         {             "name": "transport_operators",             "isparent": true,             "parents": [                 {                      "name" : "parent-foo1",                     "isparent" : true                 },                 {                      "name" : "parent-foo2",                     "isparent" : true                 }             ]         }     ],     "children": [         {             "name": "airline_alliances",             "isparent": false         },         {             "name": "airlines_by_continent",             "isparent": false         },         {             "name": "airlines_by_type",             "isparent": false,             "children": [                 {                      "name" : "children-foo1",                     "isparent" : false                 },                 {                      "name" : "children-foo2",                     "isparent" : true                 }             ]         },         {             "name": "defunct_airlines",             "isparent": false         }     ] } 

Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -