Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Let's make a face with D3.js!

Public visualization

Let's make a face with D3.js!

0 stars0🌍 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.

Comments

Sign in to join the discussion.

MIT Licensed