Collapsible Tree Hierarchy - Real Data
This interactive collapsible tree visualizes a hierarchical structure of medical terms derived from MeSH data. The visualization displays the tree as an SVG graphic, with nodes representing medical concepts and connections illustrating their relationships. Users can click on nodes to expand or collapse subtrees, while a dedicated info panel shows the term’s name, key, and description. Built with D3.js v6, the tree uses animated transitions via `transition()` and `attrTween` to smoothly reposition nodes and links. The code implements a custom `convertToHierarchy` function to transform flat JSON data into a nested tree structure.
AI-generated descriptionThis is a Hierarchy Tree of Medical data
- https://raw.githubusercontent.com/qsebso/Json-Data/main/mesh_data.json
- Each entry consists of
- The medical term
- Short descriptions
- Keys to relate the term to one another to create a tree
- Each entry consists of
Some questions that I want to answer are... (can't be done yet)
- Given some disease, what other diseases are related?
- What are some of the biggest groups of treatment types?
- Is the MeSH tree balanced, or are some subtrees bigger/smaller than others?
Somethings that I am working on include are...
- Getting another set of data that will hold information on
- How much has something been studied
- Outcomes of differnt procedures
- Side effects and results
Things I know are wrong and need to be fixed are...
- Correctly change the information div such that is does not cover the tree and moves with the height changes
- Some parent nodes have been created such that child nodes can be acsessed and create long single link chains