Closed miretchin closed 6 months ago
Hi,
I think for this to work you have to define indent as an anonymous function, for example this way:
indent = js("""
() => {
return (root) => {
root.eachBefore((node, i) => {
node.y = node.depth;
node.x = i;
});
};
}
""")
Worked! Thank you!
Hello!
This is an amazing library.
I am interested in making a custom tree layout as shown here for an Indented Tree Plot. As described here: https://observablehq.com/@observablehq/plot-custom-tree-layout
However as far as I can tell, this is just ignoring the treeLayout provided. Am I missing something? Thank you!