Skip to main content
100%

Fork of World Countries Hierarchy

✓ Published0🌍 Public
Eericliu6178@gmail.com
Last edited Mar 27, 2023
Created on Mar 27, 2023

This radial dendrogram visualizes a hierarchical dataset of crime-related terms, with three main branches: theft, assault, and drugs. The visualization uses a circular tree layout, placing the root at the center and spreading descendant labels outward along angular coordinates. The code employs D3 version 5 APIs including `d3.cluster`, `d3.hierarchy`, and `d3.linkRadial` to compute the layout and generate curved link paths. Text labels are rotated to align with their radial positions, and font sizes scale with tree depth via `d3.scaleSqrt`. The SVG rendering positions leaf labels with adjusted anchors, and the view supports interactive zooming through `d3.zoom`. The data comes from the local `data.json` file, which contains nested crime word frequencies.

AI-generated description
<iframe width="560" height="315" src="https://www.youtube.com/embed/jfpV7OBptYE?rel=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe> [World Countries Hierarchy](https://bl.ocks.org/curran/1dd7ab046a4ed32380b21e81a38447aa) [Radial Dendrogram](https://observablehq.com/@d3/radial-dendrogram)
MIT Licensed

Similar vizzes