Skip to main content
100%

Gist 9cf3726653a19fb89c2574bdde940323

✓ Published0🌍 Public
Mmbostock
Last edited Jul 23, 2018
Created on Jul 23, 2018

This example visualizes the character co-occurrence network from *Les Misérables*, grouping nodes by community and bundling edges to reveal hierarchical structure. It adapts an Observable notebook to run directly in a browser via a JavaScript module, loading data with `d3-require`. Using `d3.cluster` for layout and `d3.radialLine` with `d3.curveBundle`, it draws curved paths between characters with a steelblue, semi-transparent stroke and multiply blending. Labels are rotated and positioned radially around the 640-pixel square SVG.

AI-generated description

A demonstration of repurposing code from an Observable notebook without Observable’s reactive runtime.

Similar vizzes