Skip to main content
100%

Fork of Let's make a face with D3.js!

✓ Published0🌍 Public
Gguichun68
Last edited Apr 18, 2021
Created on Apr 18, 2021

This example demonstrates fundamental DOM manipulation with D3.js by constructing a smiley face whose eyebrows move. The visualization uses D3’s `select` and `attr` methods to access and modify SVG elements, while the `d3-force` library’s `forceSimulation` API is initialized with node data, though the simulation is immediately stopped. The code imports `arc` from D3, and the SVG canvas is 960 by 500 pixels. The embedded video illustrates the intended animated behavior, while the static page presents the underlying code structure.

AI-generated description

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

MIT Licensed

Similar vizzes