D3 - 缩进折叠树 - 附加列

时间:2013-11-04 05:58:03

标签: javascript d3.js

D3非常适合我的数据,但我在树视图中的每个节点旁边都有重要的数据列。

这可能吗?

例如:

{  “名称”:“OSS应用程序”,  “孩子们”:[   {      “名字”:“精英3E”,      “someData”:“一些数据”,      “孩子们”:[       {“name”:“Elite 3E Mobile Gateway”},       {“name”:“Elite 3E移动网站”},       {“name”:“Elite 3E移动应用程序”}

 ]
},
{
 "name": "WESTLAW DOC & FORM BUILDER",
 "someData": "Some Data",
 "children": [
  {"name": "Cobalt Website WFB",      "someData": "Some Data",},
  {"name": "Cobalt Static Content WFB"},
  {"name": "Cobalt Search WFA"},
  {"name": "Cobalt Forms Assembly WFB"},
  {"name": "Cobalt Foldering WFB"}
 ]
},
{
 "name": "FINDLAW.COM",
 "someData": "Some Data",
 "children": [
  {"name": "Findlaw-Infirmation",      "someData": "Some Data",},
  {"name": "Findlaw-hippocms"},
  {"name": "Findlaw-Lawyers Directory"},
  {"name": "Findlaw-ProfileUpdate"},
  {"name": "Findlaw-Pview"},
{"name": "Findlaw-RCMS"},
{"name": "Findlaw-public-channel"}
 ]
}

] }

0 个答案:

没有答案