theosanderson / taxonium

A tool for exploring very large trees in the browser
http://taxonium.org
GNU General Public License v3.0
95 stars 17 forks source link

How to set ladderizeTree in Taxonium React Component #583

Closed UTNK closed 2 months ago

UTNK commented 2 months ago

Hi, I deeply appreciate your great work. I'm trying to use the Taxonium React Component (https://docs.taxonium.org/en/latest/component.html) in my web application, but I cannot ladderize the tree I would like to visualize. Could you tell me how to set the ladderizeTree option in the Taxonium React Component?

theosanderson commented 2 months ago

I'm travelling at the moment so can't test this, but looking at the code, you should be able to add ladderize : true to the sourceData in those examples. Could you try that and let me know if you still have issues.

UTNK commented 2 months ago

It works! Thank you for your reply.