d3-flextree
d3-flextree copied to clipboard
Horizontal tree
Hello,
thanks for providing this package!
Is it also possible to create a horizontal tree?
Best
Hey, by "horizontal" you mean the root of the tree starting from the left and not from the top?
Hey,
yes, exactly. Is that possible?
Thanks.
Just use a new coordinate system which inverts x and y.(treat X as Y, Y as X, width as height, height as width)