Skip to main content
100%

Let's make a face with D3.js!

✓ Published0🌍 Public
Kkwanwoo100
Last edited Jun 30, 2020
Created on Jun 30, 2020
Forked from Making a Bar Chart

A yellow smiley face is drawn in SVG using D3 selections, with a circular head, two eyes, eyebrows, and a mouth created from an arc path. The face demonstrates D3 transitions by animating the eyebrow group upward and then back down over repeated 2-second intervals. The code uses `d3.select` and `d3.arc` from D3 v5, with SVG elements appended and styled via attributes for positioning and fill.

AI-generated description

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

MIT Licensed

Similar vizzes