Klortho / d3-flextree

Flexible tree layout algorithm that allows for variable node sizes
https://klortho.github.io/d3-flextree/
Do What The F*ck You Want To Public License
327 stars 45 forks source link

Top to Bottom #5

Closed niksa88 closed 7 years ago

niksa88 commented 8 years ago

Hi,

Is it possible to flip tree top to bottom?

Thanks a lot.

Klortho commented 8 years ago

Sure, why not?

niksa88 commented 8 years ago

I trying on demo but elements always flying all over the place.

I turned transform node.attr("transform", function(d) { return "translate(" + svg_y(d.x) + "," + svg_x(d.y) + ")"; }) and now elements are top to bottom but they are overlapping.

Can you please help me with that problem?