Available here: https://observablehq.com/@mariodelgadosr/collapsibletree
This version of the Collapsible Tree exposes the function collapsibleTree(configObject) where:
-
configObject is an object with the following properties:
-
data (required): an object in a format that can be transformed by the d3.hierarchy method.
-
labelTransform (optional): a function that will use a tree node’s properties to construct its label.
-
dx (optional): x node size attributes.
-
dy (optional): y node size attributes.
-