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
Post a Comment