D3 onload
✓ Published0🌍 Public
Aalper
Last edited Jan 12, 2012
Created on Jan 12, 2012
This example shows a hierarchical cluster dendrogram rendered as an SVG, with nodes positioned by depth and leaves spread vertically. It loads tree data from a JSON file using `d3.json`, then applies `d3.layout.cluster` to compute node coordinates. Links are drawn as curved paths via `d3.svg.diagonal`, while each node appears as a circle with a text label, offset depending on whether it has children. The code uses `window.onload` to trigger the visualization, and the SVG canvas is sized 960 by 2200 pixels with a translated group for layout.
AI-generated description