Skip to main content
100%

Let's make a face with D3.js

✓ Published0🌍 Public
Rrgarimella-viz
Last edited Jun 21, 2020
Created on Jun 21, 2020

This example renders a hierarchical dataset of world regions and countries as a tidy tree visualization, with the root at the left and leaves extending rightward. The tree layout positions nodes in a parent-child structure, and horizontal links connect them using `d3.linkHorizontal`. Labels display each region’s name, with font size scaling by depth and text anchors varying for leaf versus internal nodes. The visualization supports pan and zoom via `d3.zoom`, and loads the nested JSON data using `d3.json`.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes