Skip to main content
100%

Let's make a face with D3.js!

✓ Published0🌍 Public
Hhhhheeee
Last edited Aug 21, 2019
Created on Aug 21, 2019

A face drawn from a network graph animates as force-directed simulation moves its nodes. The D3.js code uses `d3.forceSimulation` with `forceX`, `forceY`, `forceCollide`, `forceManyBody`, and `forceLink` forces to arrange vertices from a JSON data file. The Canvas rendering updates on each tick, drawing edges with `drawEdge` and circular nodes with `drawNode` to form the face’s features.

AI-generated description

Demonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.

MIT Licensed

Similar vizzes