Skip to main content
100%

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

✓ Published1🌍 Public
YYue Ma
Last edited Dec 28, 2021
Created on Dec 28, 2021

A smiling face built entirely with D3.js v5 demonstrates basic SVG shape creation and animation. The code uses `d3.select` to append a yellow circle, two eye circles, and an arc-based mouth, while `d3.transition` animates the eyebrow rectangles upward and back over four seconds. SVG containers group each feature, and the face is centered via a translated `g` element. The example highlights fundamental DOM manipulation and chained transitions without any external data source.

AI-generated description

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

MIT Licensed

Similar vizzes