- 
                Notifications
    You must be signed in to change notification settings 
- Fork 10
Tree component #54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tree component #54
Conversation
| ✅ Deploy Preview for molevolvr ready!
 To edit notification comments on pull requests, go to your Netlify project configuration. | 
| Reviewers, note that the component can also show details for each "intermediate" node on the tree, not just the leaf nodes at the end. To see this, you can just remove the  I also gave each node the ability to have an arbitrary colored "type", since all the other components have that too, but we may not need it. If we keep it, I'll add a  Also, the structure of the data that the component takes is the same as that of the sunburst component: - label: "top level node"
  children:
    - label: "second level node"
      children:
        - label: "leaf node"
# etc...This may not match the structure of what will come from the backend code computing the phylogeny, but in an effort to keep the component general purpose and reusable, I think it should stay this structure, and we'll eventually have a (hopefully small) bit of frontend code to transform the phylogeny data into this. | 
| I believe this now incorporates what we discussed in the meeting yesterday. | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment for details, but for initial implementation of a scaled phylogenetic tree, I think this hits the mark.
| 
 Currently what it does is just sum the  It sounds like what you might be looking for is this horizontal distance:   In which case, this is very easy to calculate because it'd just be the difference between each node's  
 We discussed yesterday that we want to show the  They don't necessarily need to be selectable, though if it doesn't harm anything, I'd rather just leave the selectability in so I don't have to make some special indication to the user that only tip nodes are selectable but any node is hoverable. Plus it still seems like some user might want to measure between two non-tip nodes. 
 It should handle this automatically, yes. it would just appear to be a long plank. I've seen this happen with a few nodes, though not a bunch of adjacent ones at the same time. | 



Closes #34