I am looking to represent a whole hierarchy of objects, which can be accessed through a reset API is.
To do this, I would like to use the D3 tree layout to load and drag nodes. This API can return all elements of a given type. However, the children of those elements are accessed through a contextual URL instead of the nested array.
In the installation of my tree in D3, I am trying to set up a child accelerator function which uses d3.json () using this url for all children for a node to the back. Here is my tree builder function, where there is a top-level item with root
a child
attribute:
function buildTreeFor (root) {Var tree = d3.layout.tree (); Tree Child (function (node) {d3.json (node child.function (data) {return data;})}); Var nodes = tree.node (root); Var link = tree Links (nodes); }
As someone hopes, these links are empty, and nodes do not reference the children searched. After reading the D3 documentation and some tutorials, I have a pattern here I am in loss, I can return child data to the promise, but where will it be resolved? Somewhere in the node resolution process behind the scenes?
I need to ensure that all levels of this hierarchy are shown in the final diagram. What can I do to resolve these AJAX calls?
Thank you!
No comments:
Post a Comment