d3-flextree icon indicating copy to clipboard operation
d3-flextree copied to clipboard

Horizontal tree

Open samevision opened this issue 1 year ago • 3 comments

Hello,

thanks for providing this package!

Is it also possible to create a horizontal tree?

Best

samevision avatar Oct 10 '22 18:10 samevision

Hey, by "horizontal" you mean the root of the tree starting from the left and not from the top?

Bogdan-Lyashenko avatar Oct 14 '22 10:10 Bogdan-Lyashenko

Hey,

yes, exactly. Is that possible?

Thanks.

samevision avatar Oct 18 '22 23:10 samevision

Just use a new coordinate system which inverts x and y.(treat X as Y, Y as X, width as height, height as width)

SalHe avatar Oct 24 '22 03:10 SalHe