🌍 Public
Viewing a saved revision (read-only)
04d4c7484e3f41e7860ecd6c41a10c14
Fork of Fork of Simple Bar Chart
A hierarchical tree diagram displays brand-model relationships. The visualization shows a root "Brands" node branching into brand categories like OnePlus and Samsung, which further split into individual model names. The code uses `d3.rollup` to aggregate sample data into the tree structure, then applies `d3.tree()` and `d3.hierarchy()` to compute node positions. `d3.linkHorizontal()` draws curved links between nodes, while SVG circles and text labels render the hierarchy.
AI-generated descriptionA bar chart showing the top 10 most populous countries on Earth as of January 1st 2024.
Challenge
- Fork this viz and modify it to show your own data