Skip to main content
100%

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

✓ Published0🌍 Public
Mmatthewtang89@gmail.com
Last edited Jun 24, 2024
Created on Jun 24, 2024

A smiling face with yellow circular head, black-outlined eyes, and a curved mouth is rendered as SVG using D3 selections. The code builds the face by appending circles, rectangles, and an arc path to a centered group element. Eyebrows animate upward and back down via chained `transition.attr` calls over two-second intervals. The example uses `d3.select`, `d3.arc`, and SVG attribute manipulation to demonstrate fundamental DOM binding and transitions in D3 v5.

AI-generated description

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

MIT Licensed

Similar vizzes