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

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -