Can you explain the following in d3?
var nodes = cluster.nodes(packages.root(classes)),
links = packages.imports(nodes);
I can’t seem to find the proper information on the packages.root and packages.imports.
I think I know what the code is doing.
This is from the bundle-radial.js in the d3 examples.
The
packagesobject is defined in packages.js, which each of the bundle example html files includes ahead of their respectivebundle-X.js.