Fork of Fork of Let's make a face with D3.js!
✓ Published0🌍 Public
This example demonstrates fundamental DOM manipulation with D3.js by building an interactive smiley face whose eyebrows move. It uses d3.select to bind SVG elements and d3.arc to generate curved facial features. The face is rendered as static SVG shapes, with animated eyebrow movement driven by D3’s data-join and update patterns. The code imports select and arc directly from the d3 module, using a v5 bundle, and structures the visualization as a clean, modular JavaScript file separated from the HTML and CSS. The data is purely synthetic, defined inline within the script.
AI-generated descriptionDemonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.
MIT Licensed