Skip to main content
100%

Gist 6184716

✓ Published0🌍 Public
Aabernier
Last edited Aug 8, 2013
Created on Aug 8, 2013

The visualization demonstrates the number of distinct words formed by concatenating two French words from a text source, where each pair merges into a single compound word. It renders a force-directed network graph using `d3.forceSimulation`, with nodes representing individual words and links connecting pairs that appear together. The code reads a plain-text file, splits it into words, and identifies adjacent pairs that form valid concatenations. Node positions and link strengths are computed dynamically, and the final layout is drawn using SVG with `d3.select` and `d3.forceLink`. The example uses the D3.js library exclusively, with no external data files beyond the embedded text snippet.

AI-generated description

Similar vizzes