Fork of World Countries Hierarchy
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.