Skip to main content
100%

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

✓ Published0🌍 Public
Eeypkllas@gmail.com
Last edited Apr 22, 2024
Created on Apr 22, 2024

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 description

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

MIT Licensed

Similar vizzes